From 9302cd42f024e5f55dc5bce28203f70da8ea0b4e Mon Sep 17 00:00:00 2001 From: "Maximilien R." Date: Tue, 6 Aug 2024 23:22:25 +0200 Subject: Improve error message for malformed RPC secret key --- src/model/garage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/garage.rs b/src/model/garage.rs index 273690db..363b02dd 100644 --- a/src/model/garage.rs +++ b/src/model/garage.rs @@ -141,7 +141,7 @@ impl Garage { )?) .ok() .and_then(|x| NetworkKey::from_slice(&x)) - .ok_or_message("Invalid RPC secret key")?; + .ok_or_message("Invalid RPC secret key: expected 32 bits of entropy, please check the documentation for requirements")?; let (replication_factor, consistency_mode) = parse_replication_mode(&config)?; -- cgit v1.2.3