mu: log warning when exiting with error
This commit is contained in:
3
mu/mu.cc
3
mu/mu.cc
@ -67,6 +67,9 @@ handle_result(const Result<void>& res, const Mu::Options& opts)
|
||||
col.fg(Color::Blue), col.reset(),
|
||||
col.fg(Color::Green), res.error().hint(), col.reset());
|
||||
|
||||
if (res.error().exit_code() != 0 && !res.error().is_soft_error())
|
||||
mu_warning("mu finishing with error: {}", format_as(res.error()));
|
||||
|
||||
return res.error().exit_code();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user