fix(error handling): now alos logs the method that an error has been given to.
This commit is contained in:
parent
839bd138c1
commit
e7cf5b7694
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@api.global/typedrequest',
|
name: '@api.global/typedrequest',
|
||||||
version: '3.0.28',
|
version: '3.0.29',
|
||||||
description: 'A TypeScript library for making typed requests towards APIs, including facilities for handling requests, routing, and virtual stream handling.'
|
description: 'A TypeScript library for making typed requests towards APIs, including facilities for handling requests, routing, and virtual stream handling.'
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ export class TypedRequest<T extends plugins.typedRequestInterfaces.ITypedRequest
|
|||||||
}
|
}
|
||||||
if (payloadReceiving.error) {
|
if (payloadReceiving.error) {
|
||||||
console.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,
|
payloadReceiving.error.data,
|
||||||
null,
|
null,
|
||||||
2
|
2
|
||||||
|
Loading…
Reference in New Issue
Block a user