aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/licenses.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-22 21:37:58 +0900
committernsfisis <nsfisis@gmail.com>2026-02-22 21:42:00 +0900
commite7ca97f8d8b0a2e92235771657e48157e5257f2c (patch)
treef4331f611db23d283a689ecbf88a6eb89fd02b4e /crates/mozart/src/commands/licenses.rs
parent631ac98acac352955d3ffc2cb9e31b83921c42eb (diff)
downloadphp-mozart-e7ca97f8d8b0a2e92235771657e48157e5257f2c.tar.gz
php-mozart-e7ca97f8d8b0a2e92235771657e48157e5257f2c.tar.zst
php-mozart-e7ca97f8d8b0a2e92235771657e48157e5257f2c.zip
fix(licenses): align error messages with Composer output
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/licenses.rs')
-rw-r--r--crates/mozart/src/commands/licenses.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/mozart/src/commands/licenses.rs b/crates/mozart/src/commands/licenses.rs
index e8e298a..161b20a 100644
--- a/crates/mozart/src/commands/licenses.rs
+++ b/crates/mozart/src/commands/licenses.rs
@@ -41,7 +41,7 @@ pub async fn execute(
let format = args.format.as_deref().unwrap_or("text");
if format != "text" && format != "json" && format != "summary" {
anyhow::bail!(
- "Invalid format \"{}\". Supported formats: text, json, summary",
+ "Unsupported format \"{}\". See help for supported formats.",
format
);
}
@@ -130,7 +130,7 @@ fn load_locked_licenses(working_dir: &Path, no_dev: bool) -> anyhow::Result<Vec<
let lock_path = working_dir.join("composer.lock");
if !lock_path.exists() {
anyhow::bail!(
- "A valid composer.json and composer.lock file is required to run this command with --locked"
+ "Valid composer.json and composer.lock files are required to run this command with --locked"
);
}