eclipse-paho / paho.mqtt.javascript

paho.mqtt.javascript
Other
1.16k stars 466 forks source link

Fixed missing stack when exception is thrown #213

Open arsu-leo opened 4 years ago

arsu-leo commented 4 years ago

When testing for stack on errors, the statements were reversed. For instance, if user code throws an exception, it states "No Error Stack Available" on the error making it quite difficult to debug. Furthermore, if client browser's Errors would not have the stack field, the fixed statements would throw an exception.

arsu-leo commented 4 years ago

I was trying to properly submit a change but I'm being rejected due someone's mail not being valid.

Someone who has nothing to to with my commit/pull request.

I will leave this here and is up to you to take care of your messy process.