Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 2cbf56f

Browse files
authored
Merge pull request #493 from tromey/report-network-error
on XHR failure, reject promise in networkRequest
2 parents dbe2001 + 07c7835 commit 2cbf56f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devtools-utils/src/privileged-network-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function networkRequest(url, opts) {
1111
if (req.status === 200) {
1212
resolve({ content: req.responseText });
1313
} else {
14-
resolve(req.statusText);
14+
reject(req.statusText);
1515
}
1616
}
1717
});

0 commit comments

Comments
 (0)