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