Skip to content

Commit

Permalink
lxd/api_internal: Use variable instead of new error
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <pedro.ribeiro@canonical.com>
  • Loading branch information
hamistao committed Sep 6, 2024
1 parent 1fe773e commit 8e7b0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/api_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ func internalGC(d *Daemon, r *http.Request) response.Response {
func internalRAFTSnapshot(d *Daemon, r *http.Request) response.Response {
logger.Warn("Forced RAFT snapshot not supported")

return response.InternalError(fmt.Errorf("Not supported"))
return response.InternalError(storageDrivers.ErrNotSupported)
}

func internalBGPState(d *Daemon, r *http.Request) response.Response {
Expand Down

0 comments on commit 8e7b0ae

Please sign in to comment.