diff options
author | John Wiegley <johnw@newartisans.com> | 2018-07-19 22:01:31 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2018-07-19 22:01:31 -0700 |
commit | 5d02402291a923d30e66e4b0a08975ebf22361c3 (patch) | |
tree | 1802e52ef0bbbc4ab864564a242f032d22bb8f5f /src/error.h | |
parent | 8283abb594fa6729b0f32938377cbd6701441ebd (diff) | |
parent | 2b981925e5350022569203c045bd31b6d365d995 (diff) | |
download | fork-ledger-5d02402291a923d30e66e4b0a08975ebf22361c3.tar.gz fork-ledger-5d02402291a923d30e66e4b0a08975ebf22361c3.tar.bz2 fork-ledger-5d02402291a923d30e66e4b0a08975ebf22361c3.zip |
Merge remote-tracking branch 'origin/master' into next
Diffstat (limited to 'src/error.h')
-rw-r--r-- | src/error.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/error.h b/src/error.h index 88e09329..ba278519 100644 --- a/src/error.h +++ b/src/error.h @@ -95,8 +95,9 @@ string source_context(const path& file, struct error_count { std::size_t count; - explicit error_count(std::size_t _count) : count(_count) {} - const char * what() const { return ""; } + std::string message; + explicit error_count(std::size_t _count, std::string _msg) : count(_count), message(_msg) {} + const char * what() const { return message.c_str(); } }; } // namespace ledger |