0
How to popup the message which is visible in browser's console
promise.catch(e=> console.log(e.message)); provides me a message in console regarding promise. I want the same message as popup.
2 odpowiedzi
+ 2
https://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx
You'll want to encode it first, since it most likely contains escape characters in the error message. Hope that helps.
0
Found the solution, use promise.catch(e=> window.alert(e.message);