Trying regexp instead of exact match

This commit is contained in:
Rafa de la Torre 2017-11-24 10:55:02 +01:00
parent a00d994282
commit 296d1878fd
2 changed files with 2273 additions and 1 deletions

View File

@ -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];
}

2272
yarn.lock Normal file

File diff suppressed because it is too large Load Diff