{"draft":null,"from":107,"to":108,"files":[{"path":"client/src/api.ts","added":7,"removed":1,"diff":"--- a/client/src/api.ts\n+++ b/client/src/api.ts\n@@ -231,7 +231,13 @@\n \t\t\t\tawait new Promise((ok) => setTimeout(ok, 500));\n \t\t\t}\n \t\t}\n-\t\tconst text = await res.text();\n+\t\tlet text: string;\n+\t\ttry {\n+\t\t\ttext = await res.text();\n+\t\t} catch (err) {\n+\t\t\tconst reason = err instanceof Error ? err.message : String(err);\n+\t\t\tthrow new ApiError(`${method} ${path} response body ended unexpectedly: ${reason}`, res.status);\n+\t\t}\n \t\t// 409 is a refusal that says what to do (a drop took out lines your work builds on): print it as it is.\n \t\tif (!res.ok)\n \t\t\tthrow new ApiError("}],"unmatched":[]}