aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2014-02-28 15:17:28 -0500
committerGavin Andresen <[email protected]>2014-02-28 15:17:28 -0500
commit829f82226795f1306de87cfbd53544509d75b406 (patch)
treeae3c0a2aac0cd9f5c1f6b0e59e95af8fdc8385bd /src
parentMerge pull request #3694 from gavinandresen/vfspent (diff)
parentMake tinyformat errors raise an exception instead of assert()ing (diff)
downloaddiscoin-829f82226795f1306de87cfbd53544509d75b406.tar.xz
discoin-829f82226795f1306de87cfbd53544509d75b406.zip
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tinyformat.h b/src/tinyformat.h
index 04b51f0ad..b6113029f 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.