Fix assigning properties to non-writable error object (updated) #5
Merged
joepie91
merged 1 commits from ThePendulum/node-bhttp:readonly-error
into master
3 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'ThePendulum/node-bhttp:readonly-error'
Deleting a branch is permanent. It CANNOT be undone. Continue?
When certain errors such as a response time-out occur, the
addErrorData()
function would attempt to assign req/res information to the error, failing to do so because errors from theerrors
library are read-only.This change removes
addErrorData()
in favor of using the library's option-style constructor way of assigning arbitrary properties to an error.5539d06789
into master 3 years agoThanks! Published in
1.2.8
.5539d06789
.