Restore for scaffold()
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
@@ -159,7 +159,9 @@ export class ScaffolderClient implements ScaffolderApi {
|
||||
});
|
||||
|
||||
if (response.status !== 201) {
|
||||
throw ResponseError.fromResponse(response);
|
||||
const status = `${response.status} ${response.statusText}`;
|
||||
const body = await response.text();
|
||||
throw new Error(`Backend request failed, ${status} ${body.trim()}`);
|
||||
}
|
||||
|
||||
const { id } = (await response.json()) as { id: string };
|
||||
|
||||
Reference in New Issue
Block a user