Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Aug 31, 2023
1 parent 0a7a100 commit dc64bdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,10 @@ export class Shadow extends HTMLElement {
}
} catch (error) {
if (isString(jwt)) {
console.error(`Received rpc error code ${error?.code}.`);
console.error(
`Received rpc error code ${error?.code} (${error?.message}).`,
);
if (error?.data) console.error(error.data);
removeJwt(this._jwtKeyName);
goHome();
} else {
Expand Down

0 comments on commit dc64bdb

Please sign in to comment.