Improved generic exception reporting
This commit is contained in:
parent
610a66220f
commit
e6f470a244
|
@ -31,7 +31,7 @@ void reportParsingError(const char* phone_number, const char* msg = "") {
|
|||
void reportGenericError(std::exception& exception) {
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_EXTERNAL_ROUTINE_INVOCATION_EXCEPTION),
|
||||
errmsg("%s", typeid(exception).name()),
|
||||
errmsg("C++ exception: %s", typeid(exception).name()),
|
||||
errdetail("%s", exception.what())));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue