From 87a185ea9c7b439b8db06aaf22f7000bbae01025 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 3 Apr 2020 11:09:02 +0200 Subject: [PATCH] checker: remove newlines after errors --- vlib/v/checker/checker.v | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 92668fb60b..b2d21674fb 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -952,7 +952,7 @@ pub fn (c mut Checker) ident(ident mut ast.Ident) table.Type { return table.int_type } if ident.name != '_' { - c.error('unknown ident: `$ident.name`', ident.pos) + c.error('undefined: `$ident.name`', ident.pos) } return table.void_type } @@ -1199,8 +1199,9 @@ pub fn (c mut Checker) error(s string, pos token.Position) { eprintln(final_msg_line) } */ - - println('\n\n') + if c.pref.verbosity.is_higher_or_equal(.level_one) { + println('\n\n') + } if c.nr_errors >= max_nr_errors { exit(1) }