From 8e7b0ae88ad860023de0b4ed426f9f03aab43d73 Mon Sep 17 00:00:00 2001 From: hamistao Date: Thu, 15 Aug 2024 19:05:47 -0300 Subject: [PATCH] lxd/api_internal: Use variable instead of new error Signed-off-by: hamistao --- lxd/api_internal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/api_internal.go b/lxd/api_internal.go index e2822ad2dc07..85ac72f1dae8 100644 --- a/lxd/api_internal.go +++ b/lxd/api_internal.go @@ -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 {