diff options
author | Guillaume Maudoux <guillaume.maudoux@tweag.io> | 2022-10-25 01:46:10 +0200 |
---|---|---|
committer | Guillaume Maudoux <guillaume.maudoux@tweag.io> | 2022-10-25 01:46:10 +0200 |
commit | e93bf69b448d4f4ce6c3fe7b7acfa904afe058c0 (patch) | |
tree | 902c6994294be36fe9ebd9c7e2149f9010776b82 /src/libutil | |
parent | 8bd8583bc7a430eeee0f5d5e5cb502158419a500 (diff) |
Rework error throwing, and test it
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/error.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index bf99581e2..6db77bcbf 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -192,6 +192,8 @@ public: void addTrace(std::optional<ErrPos> e, hintformat hint, bool frame = false); bool hasTrace() const { return !err.traces.empty(); } + + const ErrorInfo & info() { return err; }; }; #define MakeError(newClass, superClass) \ |