Show More
@@ -110,18 +110,23 b' fn main_with_result(' | |||
|
110 | 110 | } |
|
111 | 111 | } |
|
112 | 112 | |
|
113 | let blackbox = blackbox::Blackbox::new(&invocation, process_start_time)?; | |
|
114 | blackbox.log_command_start(); | |
|
115 | let result = run(&invocation); | |
|
116 |
blackbox.log_command_ |
|
|
117 | &result, | |
|
118 | // TODO: show a warning or combine with original error if `get_bool` | |
|
119 | // returns an error | |
|
120 | config | |
|
121 | .get_bool(b"ui", b"detailed-exit-code") | |
|
122 | .unwrap_or(false), | |
|
123 | )); | |
|
124 | result | |
|
113 | if config.is_extension_enabled(b"blackbox") { | |
|
114 | let blackbox = | |
|
115 | blackbox::Blackbox::new(&invocation, process_start_time)?; | |
|
116 | blackbox.log_command_start(); | |
|
117 | let result = run(&invocation); | |
|
118 | blackbox.log_command_end(exit_code( | |
|
119 | &result, | |
|
120 | // TODO: show a warning or combine with original error if | |
|
121 | // `get_bool` returns an error | |
|
122 | config | |
|
123 | .get_bool(b"ui", b"detailed-exit-code") | |
|
124 | .unwrap_or(false), | |
|
125 | )); | |
|
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