Show More
@@ -110,18 +110,23 fn main_with_result( | |||
|
110 | 110 | } |
|
111 | 111 | } |
|
112 | 112 | |
|
113 | let blackbox = blackbox::Blackbox::new(&invocation, process_start_time)?; | |
|
113 | if config.is_extension_enabled(b"blackbox") { | |
|
114 | let blackbox = | |
|
115 | blackbox::Blackbox::new(&invocation, process_start_time)?; | |
|
114 | 116 | blackbox.log_command_start(); |
|
115 | 117 | let result = run(&invocation); |
|
116 | 118 | blackbox.log_command_end(exit_code( |
|
117 | 119 | &result, |
|
118 |
// TODO: show a warning or combine with original error if |
|
|
119 | // returns an error | |
|
120 | // TODO: show a warning or combine with original error if | |
|
121 | // `get_bool` returns an error | |
|
120 | 122 | config |
|
121 | 123 | .get_bool(b"ui", b"detailed-exit-code") |
|
122 | 124 | .unwrap_or(false), |
|
123 | 125 | )); |
|
124 | 126 | result |
|
127 | } else { | |
|
128 | run(&invocation) | |
|
129 | } | |
|
125 | 130 | } |
|
126 | 131 | |
|
127 | 132 | fn main() { |
General Comments 0
You need to be logged in to leave comments.
Login now