File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -1005,7 +1005,7 @@ Executed at: {executed_at}"#,
10051005 \n It was not possible to execute the command: {e:?}"
10061006 )
10071007 . unwrap ( ) ;
1008- CommandOutput :: did_not_start ( )
1008+ CommandOutput :: did_not_start ( stdout , stderr )
10091009 }
10101010 } ;
10111011 if !output. is_success ( ) {
Original file line number Diff line number Diff line change @@ -231,8 +231,18 @@ pub struct CommandOutput {
231231
232232impl CommandOutput {
233233 #[ must_use]
234- pub fn did_not_start ( ) -> Self {
235- Self { status : CommandStatus :: DidNotStart , stdout : None , stderr : None }
234+ pub fn did_not_start ( stdout : OutputMode , stderr : OutputMode ) -> Self {
235+ Self {
236+ status : CommandStatus :: DidNotStart ,
237+ stdout : match stdout {
238+ OutputMode :: Print => None ,
239+ OutputMode :: Capture => Some ( vec ! [ ] ) ,
240+ } ,
241+ stderr : match stderr {
242+ OutputMode :: Print => None ,
243+ OutputMode :: Capture => Some ( vec ! [ ] ) ,
244+ } ,
245+ }
236246 }
237247
238248 #[ must_use]
You can’t perform that action at this time.
0 commit comments