Commit f2b77c94 authored by Kirill Smelkov's avatar Kirill Smelkov

libgolang: PanicError += what()

Give what() to PanicError so that uncaught panics give proper message on
std::terminate_handler crash instead of printing just "std::exception",
for example

    terminate called after throwing an instance of 'golang::PanicError'
      what():  chan: decref: free: recvq not empty

instead of

    terminate called after throwing an instance of 'golang::PanicError'
      what():  std::exception
parent 4dc1a7f0
......@@ -65,6 +65,10 @@ namespace golang {
struct PanicError : exception {
const char *arg;
virtual const char *what() const throw() {
return arg;
}
};
// panic throws exception that represents C-level panic.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment