Skip to content

Commit

Permalink
internal/db: Fix error format string
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Pelizäus <[email protected]>
(cherry picked from commit 9c241a8)
  • Loading branch information
roosterfish authored and MggMuggins committed Aug 16, 2024
1 parent e83b3df commit 7b5e247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/dqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (db *DqliteDB) IsOpen(ctx context.Context) error {
case types.DatabaseOffline:
fallthrough
case types.DatabaseStarting:
return api.StatusErrorf(http.StatusServiceUnavailable, string(status))
return api.StatusErrorf(http.StatusServiceUnavailable, "%s", string(status))

case types.DatabaseWaiting:
intVersion, extversion, apiExtensions := db.Schema().Version()
Expand Down

0 comments on commit 7b5e247

Please sign in to comment.