Skip to content

Error Stack fix - #212

Open
arsu-leo wants to merge 10 commits into
eclipse-paho:masterfrom
arsu-leo:stack-fix
Open

Error Stack fix#212
arsu-leo wants to merge 10 commits into
eclipse-paho:masterfrom
arsu-leo:stack-fix

Conversation

@arsu-leo

Copy link
Copy Markdown

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.

Matt Cowan and others added 10 commits February 15, 2019 16:13
In browsers when localStorage access is disabled for your domain the
browsers will throw an Access denied error if you try to even read the
localStorage property. This commit adds try/catch logic to handle the
error and use the in-memory fallback.

Signed-off-by: Matt Cowan <mcowan@atlassian.com>
Signed-off-by: Mark Evans <mark.evans2@sky.uk>
…ments

Signed-off-by: Mark Evans <mark.evans2@sky.uk>
Handle cases where localStorage access is denied
…obal-websocket

No implicit global WebSocket
Also-by: Piotr Kuczynski <piotr.kuczynski@gmail.com>
Signed-off-by: Lleonard Subirana <arsu.leo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants