File tree Expand file tree Collapse file tree 6 files changed +169
-76
lines changed Expand file tree Collapse file tree 6 files changed +169
-76
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ pub fn exec(mut cmd: Command) -> ! {
129
129
// On non-Unix imitate POSIX exec as closely as we can
130
130
#[ cfg( not( unix) ) ]
131
131
{
132
- let exit_status = cmd. status ( ) . expect ( "failed to run command" ) ;
132
+ let exit_status =
133
+ cmd. status ( ) . unwrap_or_else ( |err| panic ! ( "failed to run `{cmd:?}`:\n {err}" ) ) ;
133
134
std:: process:: exit ( exit_status. code ( ) . unwrap_or ( -1 ) )
134
135
}
135
136
// On Unix targets, actually exec.
@@ -138,8 +139,8 @@ pub fn exec(mut cmd: Command) -> ! {
138
139
#[ cfg( unix) ]
139
140
{
140
141
use std:: os:: unix:: process:: CommandExt ;
141
- let error = cmd. exec ( ) ;
142
- panic ! ( "failed to run command: {error }" )
142
+ let err = cmd. exec ( ) ;
143
+ panic ! ( "failed to run `{cmd:?}`: \n {err }" )
143
144
}
144
145
}
145
146
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ pub enum Command {
75
75
///
76
76
/// Also respects MIRIFLAGS environment variable.
77
77
Run {
78
- /// Build the program with the dependencies declared in `test_dependencies /Cargo.toml`.
78
+ /// Build the program with the dependencies declared in `tests/deps /Cargo.toml`.
79
79
#[ arg( long) ]
80
80
dep : bool ,
81
81
/// Show build progress.
You can’t perform that action at this time.
0 commit comments