Skip to content

Commit 829f822

Browse files
committed
Merge pull request #3767 from laanwj/2014_02_tinyformat_errors_non_fatal
Make tinyformat errors raise an exception instead of assert()ing
2 parents f60e49d + 1b8fd35 commit 829f822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tinyformat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ namespace tinyformat {}
109109
namespace tfm = tinyformat;
110110

111111
// Error handling; calls assert() by default.
112-
// #define TINYFORMAT_ERROR(reasonString) your_error_handler(reasonString)
112+
#define TINYFORMAT_ERROR(reasonString) throw std::runtime_error(reasonString)
113113

114114
// Define for C++11 variadic templates which make the code shorter & more
115115
// general. If you don't define this, C++11 support is autodetected below.

0 commit comments

Comments
 (0)