mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
errors: do not bold the actual error message content
This commit is contained in:
parent
7a99949f0e
commit
d74eb99066
@ -114,7 +114,7 @@ pub fn formated_error(kind string /*error or warn*/, emsg string, filepath strin
|
|||||||
term.bold(term.bright_blue(kind))
|
term.bold(term.bright_blue(kind))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final_msg := if emanager.support_color { term.bold(emsg) } else { emsg }
|
final_msg := emsg // if emanager.support_color { term.bold(emsg) } else { emsg }
|
||||||
final_context := if source_context.len > 0 { '\n$source_context' } else { '' }
|
final_context := if source_context.len > 0 { '\n$source_context' } else { '' }
|
||||||
//
|
//
|
||||||
return '$final_position $final_kind $final_msg $final_context'.trim_space()
|
return '$final_position $final_kind $final_msg $final_context'.trim_space()
|
||||||
|
Loading…
Reference in New Issue
Block a user