mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-23 04:50:17 +00:00
Update error.h
This commit is contained in:
parent
ac9640f73e
commit
e02429365e
@ -86,7 +86,7 @@ public:
|
|||||||
StrStream ss;
|
StrStream ss;
|
||||||
if(is_re) ss << "Traceback (most recent call last):\n";
|
if(is_re) ss << "Traceback (most recent call last):\n";
|
||||||
while(!st.empty()) { ss << st.top() << '\n'; st.pop(); }
|
while(!st.empty()) { ss << st.top() << '\n'; st.pop(); }
|
||||||
if (msg.compare("") != 0) ss << type << ": " << msg;
|
if (!msg.empty()) ss << type << ": " << msg;
|
||||||
else ss << type;
|
else ss << type;
|
||||||
return ss.str();
|
return ss.str();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user