summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-08-09 16:29:11 +0200
committerGitHub <noreply@github.com>2024-08-09 14:29:11 +0000
commit218ee1b1ffebbb53aa82c8ce55e7ee7061342249 (patch)
tree6eda062dbde889dcd7bd39fe0b8bf79d70b4b36b /cli/main.rs
parent4dc8fe20200b6bbdc93c30e49ebbeb161dbda85e (diff)
fix(add): Better error message when missing npm specifier (#24970)
Before: <img width="278" alt="Screenshot 2024-08-09 at 3 15 01 PM" src="https://github.com/user-attachments/assets/91b0ada6-93ee-4be6-a996-078aef98c2a9"> After: <img width="888" alt="Screenshot 2024-08-09 at 3 52 15 PM" src="https://github.com/user-attachments/assets/3c88a0e8-c761-4f70-88bf-109355ac12f0">
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 534fa92d4..8ebf65e16 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -98,7 +98,7 @@ fn spawn_subcommand<F: Future<Output = T> + 'static, T: SubcommandOutput>(
async fn run_subcommand(flags: Arc<Flags>) -> Result<i32, AnyError> {
let handle = match flags.subcommand.clone() {
DenoSubcommand::Add(add_flags) => spawn_subcommand(async {
- tools::registry::add(flags, add_flags).await
+ tools::registry::add(flags, add_flags, tools::registry::AddCommandName::Add).await
}),
DenoSubcommand::Bench(bench_flags) => spawn_subcommand(async {
if bench_flags.watch.is_some() {