From b65ef9022af8ef260bd2c54e0120f10fd5860d07 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 26 Jun 2019 14:53:55 +0200 Subject: [PATCH] parser.v: a cleaner hint message --- compiler/parser.v | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/compiler/parser.v b/compiler/parser.v index 4c5faab30a..6ffceace75 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -657,13 +657,13 @@ fn (p mut Parser) error(s string) { // V git pull hint cur_path := os.getwd() if p.file_path.contains('v/compiler') || cur_path.contains('v/compiler') { - println('\n====================') - println('It looks like you are building V. It is being frequently updated every day.' + - ' If you didn\'t modify the compiler\'s code, most likely there was a change that lead to this error. ') - println('Try to run `git pull && make clean && make`, that will most likely fix it.') - println('If `git pull` doesn\'t help, re-install V from source or download a precompiled' + - ' binary from https://vlang.io.') - println('====================\n') + println('\n=========================') + println('It looks like you are building V. It is being frequently updated every day.') + println('If you didn\'t modify the compiler\'s code, most likely there was a change that ') + println('lead to this error.') + println('\nTry to run `git pull && make clean && make`, that will most likely fix it.') + println('\nIf this doesn\'t help, re-install V from source or download a precompiled' + ' binary from\nhttps://vlang.io.') + println('=========================\n') } // p.scanner.debug_tokens() // Print `[]int` instead of `array_int` in errors