Improved generic exception reporting

This commit is contained in:
BLM 2015-07-14 15:40:13 -05:00
parent 610a66220f
commit e6f470a244
1 changed files with 1 additions and 1 deletions

View File

@ -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())));
}