Skip to content

Commit

Permalink
stringifying response
Browse files Browse the repository at this point in the history
Bumps [terser](https://github.com/terser/terser) from 4.3.4 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
ebsi-bblake committed Sep 18, 2022
1 parent 645cf66 commit 6edfeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ module.exports = function($window, oncompletion) {
else {
var completeErrorResponse = function() {
try { message = ev.target.responseText }
catch (e) { message = response }
catch (e) { message = JSON.stringify(response) }
var error = new Error(message)
error.code = ev.target.status
error.response = response
Expand Down

0 comments on commit 6edfeb7

Please sign in to comment.