fix(error handling): now alos logs the method that an error has been given to.

This commit is contained in:
2024-05-31 16:34:54 +02:00
parent 839bd138c1
commit e7cf5b7694
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ export class TypedRequest<T extends plugins.typedRequestInterfaces.ITypedRequest
}
if (payloadReceiving.error) {
console.error(
`Got an error ${payloadReceiving.error.text} with data ${JSON.stringify(
`method: >>${this.method}<< got an ERROR: "${payloadReceiving.error.text}" with data ${JSON.stringify(
payloadReceiving.error.data,
null,
2