Skip to content

Commit

Permalink
Address review comments: Fix the exit code
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun committed Sep 26, 2024
1 parent 4c7f9bd commit fa152ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/uv/src/commands/project/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ pub(crate) async fn run(
"\nSee `uv run --help` for more information."
)?;

return Ok(ExitStatus::Failure);
return Ok(ExitStatus::Error);
};

debug!("Running `{command}`");
Expand Down
4 changes: 2 additions & 2 deletions crates/uv/tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ fn run_no_args() -> Result<()> {
#[cfg(not(windows))]
uv_snapshot!(context.filters(), context.run(), @r###"
success: false
exit_code: 1
exit_code: 2
----- stdout -----
Provide a command or script to invoke with `uv run <command>` or `uv run <script>.py`.
Expand All @@ -242,7 +242,7 @@ fn run_no_args() -> Result<()> {
#[cfg(windows)]
uv_snapshot!(context.filters(), context.run(), @r###"
success: false
exit_code: 1
exit_code: 2
----- stdout -----
Provide a command or script to invoke with `uv run <command>` or `uv run <script>.py`.
Expand Down

0 comments on commit fa152ee

Please sign in to comment.