Skip to content

Commit

Permalink
improve backend error
Browse files Browse the repository at this point in the history
  • Loading branch information
artifishvr committed Apr 24, 2024
1 parent 61bc357 commit 9ace930
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ const client = new Client({
});

backendsocket.on("connect_error", (err) => {
// the reason of the error, for example "xhr poll error"
console.log(err.message);
// some additional description, for example the status code of the initial HTTP response
console.log(err.description);
console.error(`Error connecting to backend: ${err.message}`);
});

if (!fs.existsSync('./temp')) fs.mkdirSync('./temp');
Expand Down

1 comment on commit 9ace930

@Butterroach
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throw

Please sign in to comment.