[Regression] Generic error message after failed commit
MR: !303 (merged)
Description
Based on this internal Slack thread:
Hello Web IDE folks!
I have a question that I hope someone can help me out with. I am working on a feature in which I reject new commits to a project under certain circumstances. Last time I was doing something like this, I recall the error message bubbling up into the Web IDE UI. Now I see a more generic message instead, with a note to check the console for further details. See the attached picture. What console does this refer to? My browser’s dev tools console? If this refers to some console within the Web IDE, then how do I get to it? Many thanks!
Error in UI | Error from network response |
---|---|
Implementation plan
We inadvertently broke this !281 (merged) when we updated the FetchError
message to be a string rather than JSON. VSCode intercepts these exceptions, so the only way for us to preserve information is to use JSON in the message, which our error handlers were expecting.