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