Skip to content

Commit 1bf4fbf

Browse files
committed
sql.ErrNoRows
1 parent 6ce2d00 commit 1bf4fbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/debug.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package coderd
33
import (
44
"bytes"
55
"context"
6+
"database/sql"
67
"encoding/json"
78
"fmt"
89
"net/http"
@@ -265,7 +266,7 @@ func loadDismissedHealthchecks(ctx context.Context, db database.Store, logger sl
265266
dismissedHealthchecks = settings.DismissedHealthchecks
266267
}
267268
}
268-
if err != nil {
269+
if err != nil && !xerrors.Is(err, sql.ErrNoRows) {
269270
logger.Error(ctx, "unable to fetch health settings: %w", err)
270271
}
271272
return dismissedHealthchecks

0 commit comments

Comments
 (0)