better exception message in some cases

This commit is contained in:
2021-11-07 12:24:00 +01:00
parent c8c25e9952
commit a5a0029341
2 changed files with 7 additions and 2 deletions

2
ml.h
View File

@@ -81,6 +81,8 @@ public:
// Get the printable error description.
std::string description() const;
const char * what() const noexcept override;
private:
MlValue *cause;
MlEnvironment env;