This commit is contained in:
Adhiraj
2020-08-30 23:22:04 +05:30
parent 29f547ed8d
commit 61104e8a6b
4 changed files with 16 additions and 2 deletions

View File

@@ -218,7 +218,7 @@ export class WAConnection extends EventEmitter {
const response = await this.query ({json, binaryTags, tag, timeoutMs, expect200, waitForOpen})
return response
}
throw new BaileysError(`Unexpected status code in '${json[0] || 'generic query'}': ${response.status}`, {query: json})
throw new BaileysError(`Unexpected status code in '${json[0] || 'generic query'}': ${response.status}`, {query: json, status: response.status})
}
return response
}