metacatui
metacatui copied to clipboard
Remove console.logs and improve try/catch through the whole repo
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.
Extra context: avoiding console.log in our production code is part transitioning our codebase to use the airbnb style guide, see CONTRIBUTING - linting.