aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaximilien R. <maximilien@deuxfleurs.fr>2024-08-06 23:22:25 +0200
committermaximilien <me@mricher.fr>2024-08-08 23:05:24 +0000
commit9302cd42f024e5f55dc5bce28203f70da8ea0b4e (patch)
tree21044a13236211cefeec805bd79ff75700066aed /src
parent060ad0da3231e20cc57b7c3435b1f373dc01d724 (diff)
downloadgarage-improve-secret-error-message.tar.gz
garage-improve-secret-error-message.zip
Improve error message for malformed RPC secret keyimprove-secret-error-message
Diffstat (limited to 'src')
-rw-r--r--src/model/garage.rs2
1 files changed, 1 insertions, 1 deletions
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)?;