Skip to content

Commit d218d32

Browse files
Update coderd/templateversions.go
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
1 parent 0f3c2b4 commit d218d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/templateversions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ func (api *API) previousTemplateVersionByOrganizationAndName(rw http.ResponseWri
648648
OrganizationID: organization.ID,
649649
Name: templateVersionName,
650650
})
651-
if errors.Is(err, sql.ErrNoRows) {
651+
if xerrors.Is(err, sql.ErrNoRows) {
652652
httpapi.Write(ctx, rw, http.StatusNotFound, codersdk.Response{
653653
Message: fmt.Sprintf("No template version found by name %q.", templateVersionName),
654654
})

0 commit comments

Comments
 (0)