mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge pull request #3767 from laanwj/2014_02_tinyformat_errors_non_fatal
Make tinyformat errors raise an exception instead of assert()ing
This commit is contained in:
commit
829f822267
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user