From 9ba4d0f921f7876ae093cd5b3c86a6f66adda015 Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 2 Jan 2023 16:43:23 +0100 Subject: [PATCH] update the error messages according to the spec --- meilisearch/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meilisearch/src/main.rs b/meilisearch/src/main.rs index 3c4e314f8..e3309dde8 100644 --- a/meilisearch/src/main.rs +++ b/meilisearch/src/main.rs @@ -41,7 +41,7 @@ async fn main() -> anyhow::Result<()> { match (opt.env.as_ref(), &opt.master_key) { ("production", Some(master_key)) if master_key.len() < MASTER_KEY_MIN_SIZE => { anyhow::bail!( - "In production mode, the Master Key must be of at least {MASTER_KEY_MIN_SIZE} characters, but the provided key is only {} characters long + "In production mode, the master key must be of at least {MASTER_KEY_MIN_SIZE} characters, but the provided key is only {} characters long We generated a secure Master Key for you (you can safely copy this token): @@ -52,7 +52,7 @@ We generated a secure Master Key for you (you can safely copy this token): } ("production", None) => { anyhow::bail!( - "In production mode, the environment variable MEILI_MASTER_KEY is mandatory + "In production mode, you must provide a master key to secure your instance. It can be specified via the MEILI_MASTER_KEY environment variable or the --master-key launch option. We generated a secure Master Key for you (you can safely copy this token):