Trying regexp instead of exact match
This commit is contained in:
parent
a00d994282
commit
296d1878fd
@ -18,7 +18,7 @@ ErrorHandler.prototype.getMessage = function() {
|
||||
// return conditionToMessage[this.err.code] || this.err.message;
|
||||
if (message &&
|
||||
(message.match(/statement timeout/) ||
|
||||
message === 'RuntimeError: Execution of function interrupted by signal')
|
||||
message === /RuntimeError: Execution of function interrupted by signal/)
|
||||
) {
|
||||
message = conditionToMessage[pgErrorCodes.conditionToCode.query_canceled];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user