Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devlxd: Unmask Render errors (#14760)
This implements a better handling of errors during Render on devlxd handlers, following the same pattern seen on https://github.com/hamistao/lxd/blob/unmask_write_errors/lxd/daemon.go#L846 When rendering a response (send it to the client) fails, instead of masking the error we try to send a response using `DevLxdErrorResponse` to the client communicating the error, since this determines the response type used for communicating erros on the devlxd API. If that also fails, an error is logged on the server.
- Loading branch information