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 <[email protected]>
  • Loading branch information
hamistao committed Sep 3, 2024
1 parent 5f337b4 commit f712513
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 f712513

Please sign in to comment.