mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
fix(runtime): handle empty dev runner responses
This commit is contained in:
parent
9a150eee65
commit
1de1393413
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ export async function parseJsonResponseWithLimit<T>(
|
|||
}
|
||||
|
||||
if (!response.body) {
|
||||
return JSON.parse("") as T;
|
||||
throw new Error("Response has no body");
|
||||
}
|
||||
|
||||
const reader = response.body.getReader();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue