Commit 7edc3fdd by Torkel Ödegaard

Added another error object message detection

parent baeec495
......@@ -6,6 +6,8 @@ export function getMessageFromError(err: any): string | null {
return err.message;
} else if (err.data && err.data.message) {
return err.data.message;
} else if (err.statusText) {
return err.statusText;
} else {
return JSON.stringify(err);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment