Skip to content

Commit dee414d

Browse files
committed
fix(embedding-providers): use renamed --provider-api-key in update no-op error
`update`'s "provide at least one field" guard message still listed `--api-key`, which was the original local flag name before it was renamed to `--provider-api-key` to avoid colliding with the global Hotdata auth flag. A user following the error guidance would reach for `--api-key` (the global auth flag), not the provider key. One-character class of fix; caught by the PR review bot on #67.
1 parent 7dbbe95 commit dee414d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/embedding_providers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ pub fn update(
155155
if name.is_none() && config.is_none() && api_key.is_none() && secret_name.is_none() {
156156
eprintln!(
157157
"{}",
158-
"error: provide at least one of --name, --config, --api-key, --secret-name.".red()
158+
"error: provide at least one of --name, --config, --provider-api-key, --secret-name.".red()
159159
);
160160
std::process::exit(1);
161161
}

0 commit comments

Comments
 (0)