diff --git a/testing/web-platform/tests/html/cross-origin-embedder-policy/require-corp-sw.https.html b/testing/web-platform/tests/html/cross-origin-embedder-policy/require-corp-sw.https.html
index bb154aecae81..05272d41a491 100644
--- a/testing/web-platform/tests/html/cross-origin-embedder-policy/require-corp-sw.https.html
+++ b/testing/web-platform/tests/html/cross-origin-embedder-policy/require-corp-sw.https.html
@@ -32,7 +32,7 @@ promise_test(async t => {
navigator.serviceWorker.addEventListener('message', resolve,
{once: true}));
worker.postMessage('WithoutCorp');
- assert_equals((await p).data, 'TypeError: Failed to fetch');
+ assert_equals((await p).data, 'Exception: TypeError');
}, "fetch() to no CORP response should not succeed.");
promise_test(async t => {
diff --git a/testing/web-platform/tests/html/cross-origin-embedder-policy/resources/require-corp-sw.js b/testing/web-platform/tests/html/cross-origin-embedder-policy/resources/require-corp-sw.js
index 3e2f069ded03..10f05726fa29 100644
--- a/testing/web-platform/tests/html/cross-origin-embedder-policy/resources/require-corp-sw.js
+++ b/testing/web-platform/tests/html/cross-origin-embedder-policy/resources/require-corp-sw.js
@@ -19,7 +19,7 @@ self.addEventListener('message', e => {
const response = await fetch(url, { mode: 'no-cors' });
result = response.type;
} catch (error) {
- result = `${error.name}: ${error.message}`;
+ result = `Exception: ${error.name}`;
} finally {
e.source.postMessage(result);
}