From 6c0c05faa46d062e2fa8c6b01437122cd70c21e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Peliz=C3=A4us?= Date: Fri, 16 Aug 2024 09:49:51 +0200 Subject: [PATCH] lxd/storage_volumes: Fix format string (govet) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julian Pelizäus --- lxd/storage_volumes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/storage_volumes.go b/lxd/storage_volumes.go index b99d3f751089..b7d7dcade54d 100644 --- a/lxd/storage_volumes.go +++ b/lxd/storage_volumes.go @@ -2691,7 +2691,7 @@ func addStoragePoolVolumeDetailsToRequestContext(s *state.State, r *http.Request // Convert the volume type name to our internal integer representation. volumeType, err := storagePools.VolumeTypeNameToDBType(volumeTypeName) if err != nil { - return api.StatusErrorf(http.StatusBadRequest, err.Error()) + return api.StatusErrorf(http.StatusBadRequest, "%s", err.Error()) } details.volumeType = volumeType