From a755f26075141b7ae0563f9397da5d8ad6a795f4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 28 May 2024 13:05:55 +0200 Subject: [PATCH] make exception text available for parse errors --- util.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/util.cpp b/util.cpp index 2cdfbe0a..642906c6 100644 --- a/util.cpp +++ b/util.cpp @@ -93,6 +93,7 @@ EX bool appears(const string& haystack, const string& needle) { #if HDR struct hr_parse_exception : hr_exception { string s; + const char *what() const noexcept override { return s.c_str(); } hr_parse_exception(const string& z) : s(z) {} ~hr_parse_exception() noexcept(true) {} };