aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximilien <me@mricher.fr>2024-08-09 06:47:11 +0000
committermaximilien <me@mricher.fr>2024-08-09 06:47:11 +0000
commit3a87bd1370eb9fefc67deec9d7dfa2187ddf9763 (patch)
tree21044a13236211cefeec805bd79ff75700066aed /src
parent060ad0da3231e20cc57b7c3435b1f373dc01d724 (diff)
parent9302cd42f024e5f55dc5bce28203f70da8ea0b4e (diff)
downloadgarage-3a87bd1370eb9fefc67deec9d7dfa2187ddf9763.tar.gz
garage-3a87bd1370eb9fefc67deec9d7dfa2187ddf9763.zip
Merge pull request 'Improve error message for malformed RPC secret key' (#846) from improve-secret-error-message into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/846 Reviewed-by: Quentin <quentin@dufour.io>
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)?;