mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
some fix
This commit is contained in:
parent
8a5deb6ebb
commit
6aa210159a
@ -96,7 +96,8 @@ struct TopLevelException: std::exception{
|
||||
Str summary() const { return ptr->summary(); }
|
||||
|
||||
const char* what() const noexcept override {
|
||||
static Str cached_summary(summary());
|
||||
static Str cached_summary;
|
||||
cached_summary = summary();
|
||||
return cached_summary.c_str();
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user