diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2014-02-28 15:17:28 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2014-02-28 15:17:28 -0500 |
commit | 829f82226795f1306de87cfbd53544509d75b406 (patch) | |
tree | ae3c0a2aac0cd9f5c1f6b0e59e95af8fdc8385bd /src | |
parent | f60e49d49c72908356d70d05ae30c6e63be2192d (diff) | |
parent | 1b8fd35aadfad6a1e55391f02add6076c8c9ea8f (diff) |
Merge pull request #3767 from laanwj/2014_02_tinyformat_errors_non_fatal
Make tinyformat errors raise an exception instead of assert()ing
Diffstat (limited to 'src')
-rw-r--r-- | src/tinyformat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tinyformat.h b/src/tinyformat.h index 04b51f0adc..b6113029f5 100644 --- a/src/tinyformat.h +++ b/src/tinyformat.h @@ -109,7 +109,7 @@ namespace tinyformat {} namespace tfm = tinyformat; // Error handling; calls assert() by default. -// #define TINYFORMAT_ERROR(reasonString) your_error_handler(reasonString) +#define TINYFORMAT_ERROR(reasonString) throw std::runtime_error(reasonString) // Define for C++11 variadic templates which make the code shorter & more // general. If you don't define this, C++11 support is autodetected below. |