code-server/src/node
Asher 27ba64c7e4
Improve request error handling
See #1532 for more context.

- Errored JSON requests will get back the error in JSON instead of using
  the status text. This seems better to me because it seems more correct
  to utilize the response body over hijacking the status text. The
  caller is expecting JSON anyway. Worst of all I never actually set the
  status text like I thought I did so it wasn't working to begin with.
- Allow the update error to propagate for JSON update requests. It was
  caught to show the error inline instead of an error page when using
  the update page but for JSON requests it meant there was no error and
  no error code so it looked like it succeeded.
- Make errors for failed requests to GitHub less incomprehensible.
  Previously they would just be the code which is no context at all.
2020-04-17 15:16:10 -05:00
..
app Improve request error handling 2020-04-17 15:16:10 -05:00
ssh Prevent exiting when an exception is uncaught 2020-03-30 17:43:10 -05:00
cli.ts Add proxy-domain flag 2020-04-02 13:40:14 -05:00
entry.ts Move proxy logic into main HTTP server 2020-04-02 13:40:29 -05:00
http.ts Improve request error handling 2020-04-17 15:16:10 -05:00
settings.ts Make updating work for both binary and loose releases 2020-02-20 18:48:16 -06:00
socket.ts Implement new structure 2020-02-04 14:31:44 -06:00
util.ts SSH server & endpoint 2020-03-16 15:14:53 -05:00
wrapper.ts Switch to loose files 2020-02-25 18:23:35 -06:00