Skip to content

Commit

Permalink
fix: improve error for http-device
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Sep 27, 2022
1 parent 5e464d4 commit 40d00ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class HTTPSendDevice extends DeviceWithState<HTTPSendState, DeviceOptions
} catch (error) {
const err = error as RequestError // make typescript happy

this.emit('error', `HTTPSend.response error ${cmd.type} (${context}`, err)
this.emit('error', `HTTPSend.response error on ${cmd.type} "${cmd.url}" (${context})`, err)
this.emit('commandError', err, cwc)
debug(`Failed ${cmd.url}: ${error} (${timelineObjId})`)

Expand Down

0 comments on commit 40d00ab

Please sign in to comment.