Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create nice way to show exceptions #303

Closed
tecimovic opened this issue Nov 11, 2021 · 2 comments
Closed

Create nice way to show exceptions #303

tecimovic opened this issue Nov 11, 2021 · 2 comments

Comments

@tecimovic
Copy link
Collaborator

The express layers in handlers do things like this:

    try {
        ..... DO SOMETHING ......
    } catch (err) {
      response.status(StatusCodes.INTERNAL_SERVER_ERROR).json(err)
    }

The final response returns the exception back to the browser with the code 500.
Is there something you guys can cook up to easily see these exceptions? We have that "GENERAL" tab at the top of the page, which is essentially debugging stuff.
Can you easily add another section there called "Exceptions" or something like that, that would nicely show these exceptions when returned from the backend?
It would help faster development if I can easily see these exceptions that the server is returning somewhere on the browser side.
6:44
If you guys have any other idea how to do this, I'd also be happy. Something quick that takes you 1/2 hour to do would be perfect.
6:44
I'm not looking for pretty for this.... I"m just looking for functional.

@tecimovic
Copy link
Collaborator Author

How do I test this? Where do I see this?

@tecimovic
Copy link
Collaborator Author

Ok, definitelly not working.... We had this bug logged, which caused exceptions on the backend:
#392

There was no way in the UI to show that something went wrong. So we don't have "nice way to show exceptions".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants