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 | blackbox.log_command_start(); |
|
116 | blackbox.log_command_start(); | |
115 | let result = run(&invocation); |
|
117 | let result = run(&invocation); | |
116 | blackbox.log_command_end(exit_code( |
|
118 | blackbox.log_command_end(exit_code( | |
117 | &result, |
|
119 | &result, | |
118 |
// TODO: show a warning or combine with original error if |
|
120 | // TODO: show a warning or combine with original error if | |
119 | // returns an error |
|
121 | // `get_bool` returns an error | |
120 | config |
|
122 | config | |
121 | .get_bool(b"ui", b"detailed-exit-code") |
|
123 | .get_bool(b"ui", b"detailed-exit-code") | |
122 | .unwrap_or(false), |
|
124 | .unwrap_or(false), | |
123 | )); |
|
125 | )); | |
124 | result |
|
126 | result | |
|
127 | } else { | |||
|
128 | run(&invocation) | |||
|
129 | } | |||
125 | } |
|
130 | } | |
126 |
|
131 | |||
127 | fn main() { |
|
132 | fn main() { |
General Comments 0
You need to be logged in to leave comments.
Login now