Skip to content

Commit 3d2ce43

Browse files
committed
fix: terminate context on error type
1 parent e780b16 commit 3d2ce43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fetch/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ function fetchFinale (fetchParams, response) {
737737

738738
// TODO (spec): The spec doesn't specify this but we need to
739739
// terminate fetch if we have an error response.
740-
if (response.status === 0) {
740+
if (response.type === 'error') {
741741
context.terminate({ reason: response.error })
742742
}
743743
}

0 commit comments

Comments
 (0)