Fix assigning properties to non-writable error object (updated)
Mergedjoepie91 merged 1 commits from
master3 years ago
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 the
errorslibrary 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.
5539d06789into master 3 years ago
Thanks! Published in