Skip to content

Commit

Permalink
Improved fatal error message
Browse files Browse the repository at this point in the history
  • Loading branch information
trupin authored Jul 17, 2018
1 parent fa3d496 commit 48b4615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/WeaverDI/DependencyContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private extension DependencyContainer {
return self
}
guard let dependencyContainer = parent?.value?.firstDependencyContainer(containing: key, isCalledFromAChild: true) else {
fatalError("Could not find key \((key)) in any parents.")
fatalError("\(DependencyContainer.self): Could not resolve key \(key).")
}
return dependencyContainer
}
Expand Down

0 comments on commit 48b4615

Please sign in to comment.