ng-swagger-gen
ng-swagger-gen copied to clipboard
How to read error message?
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?
It depends on your source swagger definition. Posting it can help...