aboutsummaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors')
-rw-r--r--src/errors/injectable.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/errors/injectable.rs b/src/errors/injectable.rs
index df71f48..f132063 100644
--- a/src/errors/injectable.rs
+++ b/src/errors/injectable.rs
@@ -2,6 +2,7 @@
//!
//! [`Injectable`]: crate::interfaces::injectable::Injectable
+use crate::dependency_history::DependencyHistory;
use crate::errors::di_container::DIContainerError;
/// Error type for structs that implement [`Injectable`].
@@ -35,10 +36,10 @@ pub enum InjectableError
affected: &'static str,
},
/// Detected circular dependencies.
- #[error("Detected circular dependencies. {dependency_trace}")]
+ #[error("Detected circular dependencies. {dependency_history}")]
DetectedCircular
{
- /// A visual trace of dependencies.
- dependency_trace: String,
+ /// History of dependencies.
+ dependency_history: DependencyHistory,
},
}