File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,12 @@ pub(crate) async fn run(
125
125
eprint ! ( "{report:?}" ) ;
126
126
return Ok ( ExitStatus :: Failure ) ;
127
127
}
128
- Err ( ProjectError :: Operation ( operations :: Error :: Named ( err) ) ) => {
129
- let err = miette:: Report :: msg ( format ! ( "{err}" ) ) . context ( "Invalid `--with` requirement" ) ;
130
- eprint ! ( "{err :?}" ) ;
128
+ Err ( ProjectError :: Anyhow ( err) ) => {
129
+ let report = miette:: Report :: msg ( format ! ( "{err}" ) ) ;
130
+ eprint ! ( "{report :?}" ) ;
131
131
return Ok ( ExitStatus :: Failure ) ;
132
132
}
133
- Err ( err) => return Err ( err. into ( ) ) ,
133
+ Err ( err) => return Err ( err. into ( ) )
134
134
} ;
135
135
136
136
// TODO(zanieb): Determine the executable command via the package entry points
Original file line number Diff line number Diff line change @@ -942,11 +942,11 @@ fn tool_run_with_editable() -> anyhow::Result<()> {
942
942
// If invalid, we should reference `--with`.
943
943
uv_snapshot ! ( context. filters( ) , context. tool_run( ) . arg( "--with" ) . arg( "./foo" ) . arg( "flask" ) . arg( "--version" ) , @r###"
944
944
success: false
945
- exit_code: 2
945
+ exit_code: 1
946
946
----- stdout -----
947
947
948
948
----- stderr -----
949
- error: Distribution not found at: file://[TEMP_DIR]/foo
949
+ × Distribution not found at: file://[TEMP_DIR]/foo
950
950
"### ) ;
951
951
952
952
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments