Debug Info Email 2
This commit is contained in:
parent
13126bd93a
commit
bf2a96886b
|
|
@ -33,7 +33,8 @@ export class Request
|
||||||
|
|
||||||
if ( ! result.ok )
|
if ( ! result.ok )
|
||||||
{
|
{
|
||||||
throw new Error( `POST ${url} failed: ${result.status} ${result.statusText} ${result.text()}` );
|
let resultText = await result.text();
|
||||||
|
throw new Error( `POST ${url} failed: ${result.status} ${result.statusText} ${resultText}` );
|
||||||
}
|
}
|
||||||
|
|
||||||
return result.json() as Promise<O>;
|
return result.json() as Promise<O>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue