Skip to content

Commit 49f8578

Browse files
authored
fix: Do not write 2 errors to api on template fetch error (#2285)
1 parent cbde8e8 commit 49f8578

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/httpmw/templateparam.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func ExtractTemplateParam(db database.Store) func(http.Handler) http.Handler {
3737
httpapi.Write(rw, http.StatusNotFound, httpapi.Response{
3838
Message: fmt.Sprintf("Template %q does not exist.", templateID),
3939
})
40+
return
4041
}
4142
if err != nil {
4243
httpapi.Write(rw, http.StatusInternalServerError, httpapi.Response{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy