Skip to content

Commit

Permalink
Exception messages for ConfigErrors() and PostLoad() now include the …
Browse files Browse the repository at this point in the history
…Dec name.
  • Loading branch information
zorbathut committed Nov 27, 2024
1 parent d00758b commit e64586e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/ParserModular.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -542,7 +542,7 @@ public void Finish()
}
catch (Exception e)
{
Dbg.Ex(e);
Dbg.Ex(new Exception($"Exception thrown during PostLoad on {dec}", e));
}
}
}
Expand Down

0 comments on commit e64586e

Please sign in to comment.