summaryrefslogtreecommitdiff
path: root/examples/ssr/src/api.ts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ssr/src/api.ts')
-rw-r--r--examples/ssr/src/api.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ssr/src/api.ts b/examples/ssr/src/api.ts
index 1be1f54f0..ec4ba9eec 100644
--- a/examples/ssr/src/api.ts
+++ b/examples/ssr/src/api.ts
@@ -32,7 +32,7 @@ async function get<T>(
});
if (!response.ok) {
// TODO make this better...
- return null;
+ throw new Error('Fetch failed');
}
return cb(response);
}