diff options
Diffstat (limited to 'nix-rust/src/error.rs')
-rw-r--r-- | nix-rust/src/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nix-rust/src/error.rs b/nix-rust/src/error.rs index 08b9bcac2..9d6fa4c51 100644 --- a/nix-rust/src/error.rs +++ b/nix-rust/src/error.rs @@ -3,6 +3,7 @@ pub enum Error { InvalidPath(crate::store::StorePath), BadStorePath(std::path::PathBuf), BadNarInfo, + BadBase32, IOError(std::io::Error), HttpError(reqwest::Error), Misc(String), @@ -29,6 +30,7 @@ impl From<Error> for CppException { Error::BadStorePath(path) => unsafe { make_error(&format!("path '{}' is not a store path", path.display())) }, // FIXME + Error::BadBase32 => unsafe { make_error("invalid base32 string") }, // FIXME Error::IOError(err) => unsafe { make_error(&err.to_string()) }, Error::HttpError(err) => unsafe { make_error(&err.to_string()) }, Error::Foreign(ex) => ex, |