builder: cleanup .timing_message/2
parent
a0e4be04be
commit
ac384db71f
|
@ -334,7 +334,8 @@ fn verror(s string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut b Builder) timing_message(msg string, ms i64) {
|
pub fn (mut b Builder) timing_message(msg string, ms i64) {
|
||||||
formatted_message := '$msg: ${util.bold(ms.str())} ms'
|
value := util.bold('$ms')
|
||||||
|
formatted_message := '$msg: $value ms'
|
||||||
if b.pref.show_timings {
|
if b.pref.show_timings {
|
||||||
println(formatted_message)
|
println(formatted_message)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -35,7 +35,7 @@ mut:
|
||||||
|
|
||||||
pub fn new_error_manager() &EManager {
|
pub fn new_error_manager() &EManager {
|
||||||
return &EManager{
|
return &EManager{
|
||||||
support_color: term.can_show_color_on_stderr()
|
support_color: term.can_show_color_on_stderr() && term.can_show_color_on_stdout()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue