removing semicolons
This commit is contained in:
parent
eefea03b80
commit
522363c419
@ -14,11 +14,11 @@ class ErrorHandler {
|
|||||||
|
|
||||||
getName () {
|
getName () {
|
||||||
return pgErrorCodes.codeToCondition[this.err.code] || this.err.name;
|
return pgErrorCodes.codeToCondition[this.err.code] || this.err.name;
|
||||||
};
|
}
|
||||||
|
|
||||||
getMessage () {
|
getMessage () {
|
||||||
return this.err.message;
|
return this.err.message;
|
||||||
};
|
}
|
||||||
|
|
||||||
getFields () {
|
getFields () {
|
||||||
return {
|
return {
|
||||||
@ -26,7 +26,7 @@ class ErrorHandler {
|
|||||||
hint: this.err.hint,
|
hint: this.err.hint,
|
||||||
context: this.err.context,
|
context: this.err.context,
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
getStatus () {
|
getStatus () {
|
||||||
var statusError = this.err.http_status || 400;
|
var statusError = this.err.http_status || 400;
|
||||||
@ -38,15 +38,14 @@ class ErrorHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return statusError;
|
return statusError;
|
||||||
};
|
}
|
||||||
|
|
||||||
isTimeoutError () {
|
isTimeoutError () {
|
||||||
return this.err.message && (
|
return this.err.message && (
|
||||||
this.err.message.indexOf('statement timeout') > -1 ||
|
this.err.message.indexOf('statement timeout') > -1 ||
|
||||||
this.err.message.indexOf('RuntimeError: Execution of function interrupted by signal') > -1
|
this.err.message.indexOf('RuntimeError: Execution of function interrupted by signal') > -1
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = ErrorHandler;
|
module.exports = ErrorHandler;
|
||||||
|
Loading…
Reference in New Issue
Block a user