Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Sep 1, 2023
1 parent dc64bdb commit 1512504
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ export class Shadow extends HTMLElement {
} catch (error) {
if (isString(jwt)) {
console.error(
`Received rpc error code ${error?.code} (${error?.message}).`,
`Received rpc error code ${error?.code} (${error?.message})${
error.data ? ":\n" + error.data : "."
}`,
);
if (error?.data) console.error(error.data);
removeJwt(this._jwtKeyName);
Expand Down

0 comments on commit 1512504

Please sign in to comment.