metacatui icon indicating copy to clipboard operation
metacatui copied to clipboard

Remove console.logs and improve try/catch through the whole repo

Open alonakos opened this issue 1 year ago • 1 comments

Describe the bug Through the code base, there are numerous console.log statements within the try/catch block. See the example here.

We would like to handle error catch more gracefully than the console. logging the error statement, and avoid using console.log in production code. We can also remove the try/catch where they are redundant and keep them where useful.

Expected behavior Clean the code to handle errors gracefully.

alonakos avatar Aug 19 '24 18:08 alonakos

Extra context: avoiding console.log in our production code is part transitioning our codebase to use the airbnb style guide, see CONTRIBUTING - linting.

robyngit avatar Aug 19 '24 20:08 robyngit