writeWorkspaceNotFound writes the workspace-resolution 404 (BUG-3069). The message is passed through because two doors have long said "Workspace not found." with a period, and the text is not changing.
(w http.ResponseWriter, message string)
| 3133 | // The message is passed through because two doors have long said |
| 3134 | // "Workspace not found." with a period, and the text is not changing. |
| 3135 | func writeWorkspaceNotFound(w http.ResponseWriter, message string) { |
| 3136 | writeError2(w, http.StatusNotFound, "not_found", message, workspaceNotFoundDetails()) |
| 3137 | } |
| 3138 | |
| 3139 | // writeInternalError logs the real error server-side and sends a generic |
| 3140 | // message to the client. This prevents leaking SQL errors, file paths, |
no test coverage detected