ng-swagger-gen icon indicating copy to clipboard operation
ng-swagger-gen copied to clipboard

How to read error message?

Open sebit-dogancoruh opened this issue 4 years ago • 1 comments

I am trying to read error message but all client functions return blob object type for errors. There is an asynchronous way to read it by error.text().then((message) => { bla bla... } but i want to read it directly because there is no chance to write error handling code in another async function for awaiting it in my project. Is there a property that i don't know or a simple way to read it synchronously?

sebit-dogancoruh avatar Jun 24 '21 10:06 sebit-dogancoruh

It depends on your source swagger definition. Posting it can help...

luisfpg avatar Jul 16 '21 13:07 luisfpg