We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c6a70d commit 021149bCopy full SHA for 021149b
src/RESTController.ts
@@ -317,8 +317,8 @@ const RESTController = {
317
// Transform the error into an instance of ParseError by trying to parse
318
// the error string as JSON
319
let error;
320
- if (errorJSON.code || errorJSON.error|| errorJSON.message) {
321
- error = new ParseError(errorJSON.code, errorJSON.error|| errorJSON.message);
+ if (errorJSON.code || errorJSON.error || errorJSON.message) {
+ error = new ParseError(errorJSON.code, errorJSON.error || errorJSON.message);
322
} else {
323
error = new ParseError(
324
ParseError.CONNECTION_FAILED,
0 commit comments