Add more descriptive exception (#7591)

* Add more descriptive exepection

* Finish with .

* Update src/Umbraco.Core/Collections/TopoGraph.cs

Co-Authored-By: Sebastiaan Janssen <sebastiaan@umbraco.com>

* Update src/Umbraco.Core/Collections/TopoGraph.cs

Co-Authored-By: Sebastiaan Janssen <sebastiaan@umbraco.com>

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
This commit is contained in:
Arkadiusz Biel
2020-02-11 09:20:30 +00:00
committed by GitHub
parent 2c9c5baae5
commit 8e2ed68b88
+1 -1
View File
@@ -126,7 +126,7 @@ namespace Umbraco.Core.Collections
if (_items.TryGetValue(key, out value))
yield return value;
else if (throwOnMissing)
throw new Exception(MissingDependencyError);
throw new Exception($"{MissingDependencyError} Error in type {typeof(TItem).Name}, with key {key}");
}
}
}