From 7b585cc9b40d3bedfb51e6fc2a368b6e7a663988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 7 Jun 2021 14:45:21 +0200 Subject: [PATCH] rgw/admin: add new error for SignatureDoesNotMatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It indicates a mal-formed query for the API where some parameters are incorrect. This is unlikely to happen with good integration test but we never know. Signed-off-by: Sébastien Han --- rgw/admin/errors.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rgw/admin/errors.go b/rgw/admin/errors.go index edb4380..c97de7d 100644 --- a/rgw/admin/errors.go +++ b/rgw/admin/errors.go @@ -79,6 +79,9 @@ const ( // ErrUnknown - reports an unknown error ErrUnknown errorReason = "Unknown" + // ErrSignatureDoesNotMatch - the query to the API has invalid parameters + ErrSignatureDoesNotMatch errorReason = "SignatureDoesNotMatch" + unmarshalError = "failed to unmarshal radosgw http response" )