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:
parent
c1bacb0695
commit
a755f26075
1
util.cpp
1
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) {}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user