mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +00:00
fix: vite fatals on receiving HTTP4xx (#7306)
* fix: vite fatals on receiving HTTP4xx * tune Vite * fmt * rewrite * fmt
This commit is contained in:
@ -26,7 +26,7 @@ func parseUUID(rw http.ResponseWriter, r *http.Request, param string) (uuid.UUID
|
||||
parsed, err := uuid.Parse(rawID)
|
||||
if err != nil {
|
||||
httpapi.Write(r.Context(), rw, http.StatusBadRequest, codersdk.Response{
|
||||
Message: fmt.Sprintf("Invalid UUID %q.", param),
|
||||
Message: fmt.Sprintf("Invalid UUID %q.", rawID),
|
||||
Detail: err.Error(),
|
||||
})
|
||||
return uuid.UUID{}, false
|
||||
|
Reference in New Issue
Block a user