| Age | Commit message (Collapse) | Author | Files | Lines |
|
(#905)
This change is to make JSONHandler error handling intuitive, as before there would be two sources of HTTP status code when HTTPErrors were generated: one as the first return value of the handler function, and one nested inside the HTTPError. Previously, it took the first return value as the status code, and ignored the code inside the HTTPError. Now, it should expect the first return value to be 0 if there is an error, and it takes the status code of the HTTPError to set as the response code.
Signed-off-by: Daniel Chung <daniel@tailscale.com>
|
|
This way something is capable of logging errors on the server.
Fixes #766
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
|
|
Closes #656 #657
Signed-off-by: Zijie Lu <zijie@tailscale.com>
|
|
Signed-off-by: Zijie Lu <zijie@tailscale.com>
|
|
Signed-off-by: Zijie Lu <zijie@tailscale.com>
|
|
Signed-off-by: Zijie Lu <zijie@tailscale.com>
|
|
Updates #395 #437
Signed-off-by: Zijie Lu <zijie@tailscale.com>
|