1
0
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:
Delyan Angelov 2020-04-06 19:46:23 +03:00
parent 7a99949f0e
commit d74eb99066

View File

@ -114,7 +114,7 @@ pub fn formated_error(kind string /*error or warn*/, emsg string, filepath strin
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 { '' }
//
return '$final_position $final_kind $final_msg $final_context'.trim_space()