This commit is contained in:
Fredrik Adelöw
2020-09-09 17:04:58 +02:00
parent a70797ecec
commit ee1e4f98c9
+1 -1
View File
@@ -53,7 +53,7 @@ export class ScaffolderApi {
if (response.status !== 201) {
const status = `${response.status} ${response.statusText}`;
const body = await response.text();
throw new Error(`Backend request failed, ${status} ${body}`);
throw new Error(`Backend request failed, ${status} ${body.trim()}`);
}
const { id } = await response.json();