diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-30 10:44:08 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-01-30 10:44:08 +0100 |
commit | 145130481eac30793c6c08caa4d208ddddfc30e8 (patch) | |
tree | 7f29aaa6f8016f8cd1ea5220e51ece43bebf6d15 /src/api/admin/error.rs | |
parent | 6ed78abb5cd09f4e5ca5effe5d6137faf33133f8 (diff) | |
download | garage-145130481eac30793c6c08caa4d208ddddfc30e8.tar.gz garage-145130481eac30793c6c08caa4d208ddddfc30e8.zip |
wip: proxy admin api requests through admin rpc, prepare new cli
Diffstat (limited to 'src/api/admin/error.rs')
-rw-r--r-- | src/api/admin/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin/error.rs b/src/api/admin/error.rs index 40d686e3..205fc314 100644 --- a/src/api/admin/error.rs +++ b/src/api/admin/error.rs @@ -56,7 +56,7 @@ impl From<HelperError> for Error { impl CommonErrorDerivative for Error {} impl Error { - fn code(&self) -> &'static str { + pub fn code(&self) -> &'static str { match self { Error::Common(c) => c.aws_code(), Error::NoSuchAccessKey(_) => "NoSuchAccessKey", |