From a666c8c9f92d87e7a3b4d4e06fdc027b3bf9663e Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sun, 15 Sep 2024 11:29:24 +0530 Subject: fix(cli): `deno task` exit with status 0 (#25637) Fixes https://github.com/denoland/deno/issues/25632 Exit code 1 indiciates some sort of failure but `deno task` (without arguments) is used to list available commands. --------- Co-authored-by: Yoshiya Hinosawa --- cli/tools/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tools/task.rs') diff --git a/cli/tools/task.rs b/cli/tools/task.rs index cc16bb9a3..e806d586c 100644 --- a/cli/tools/task.rs +++ b/cli/tools/task.rs @@ -75,7 +75,7 @@ See https://docs.deno.com/go/config"# &cli_options.start_dir, &tasks_config, )?; - return Ok(1); + return Ok(0); } }; -- cgit v1.2.3