Skip to content

Commit

Permalink
Use help text
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder committed Jul 30, 2024
1 parent c9ab014 commit 2738176
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions process/drivers/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,17 @@ pub(super) fn get_private_key<T>(check_fn: impl FnOnce(PrivateKey) -> Result<T>)
}
_ => {
bail!(
"{}{}{}{}{}{}{}",
"Unable to find private/public key pair.\n\n",
format_args!("Make sure you have a `{COSIGN_PUB_PATH}` "),
format_args!("in the root of your repo and have either {COSIGN_PRIVATE_KEY} "),
format_args!("set in your env variables or a `{COSIGN_PRIV_PATH}` "),
"file in the root of your repo.\n\n",
"See https://blue-build.org/how-to/cosign/ for more information.\n\n",
"If you don't want to sign your image, use the `--no-sign` flag."
help = format!(
"{}{}{}{}{}{}",
format_args!("Make sure you have a `{COSIGN_PUB_PATH}`\n"),
format_args!("in the root of your repo and have either {COSIGN_PRIVATE_KEY}\n"),
format_args!("set in your env variables or a `{COSIGN_PRIV_PATH}`\n"),
"file in the root of your repo.\n\n",
"See https://blue-build.org/how-to/cosign/ for more information.\n\n",
"If you don't want to sign your image, use the `--no-sign` flag.",
),
"{}",
"Unable to find private/public key pair",
)
}
}
Expand Down

0 comments on commit 2738176

Please sign in to comment.