aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tinyformat.h2
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.