1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-09 15:39:55 +00:00

make exception text available for parse errors

This commit is contained in:
Zeno Rogue 2024-05-28 13:05:55 +02:00
parent c1bacb0695
commit a755f26075

View File

@ -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) {}
};