diff --git a/CHANGELOG.md b/CHANGELOG.md index 51f47f83..6967eb16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [Unreleased] +### Improved +* Exception messages for ConfigErrors() and PostLoad() now include the Dec name. + + ## [v0.8.0] ### Added * SetupDependsOnAttribute, which allows you to define ConfigErrors/PostLoad dependencies between Dec classes. This is a prototype and will probably change in the future. diff --git a/src/ParserModular.cs b/src/ParserModular.cs index 5b6daf1a..f333337e 100644 --- a/src/ParserModular.cs +++ b/src/ParserModular.cs @@ -533,7 +533,7 @@ public void Finish() } catch (Exception e) { - Dbg.Ex(e); + Dbg.Ex(new Exception($"Exception thrown during ConfigErrors on {dec}", e)); } try @@ -542,7 +542,7 @@ public void Finish() } catch (Exception e) { - Dbg.Ex(e); + Dbg.Ex(new Exception($"Exception thrown during PostLoad on {dec}", e)); } } }