Skip to content

Commit

Permalink
Add additional information in the error block
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Musale <[email protected]>
  • Loading branch information
musale committed Aug 21, 2023
1 parent 9f3c7ee commit 69f6d14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class StatefulGraphChatClient implements StatefulClient<GraphChatClient> {
})
);
} catch (e) {
console.error(e);
console.error('Failed to load chat data or subscribe to notications: ', e);
if (e instanceof GraphError) {
this.notifyStateChange((draft: GraphChatClient) => {
draft.status = 'no messages';
Expand Down

0 comments on commit 69f6d14

Please sign in to comment.