commit | 534fb907c821b052dc430330708d7fa555b91fe3 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Sat Nov 28 12:14:40 2020 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Nov 30 19:59:24 2020 +0000 |
tree | 9dbbfe90fdf4923f376e3e93af56c7288678f3e0 | |
parent | 16ab9b001c214cf831bc52a7bca5a2d18e9e4f3c [diff] |
compiler: improve error for import of non-string Change-Id: I97fc28fc21166e024cb5906da894075f8315669b Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273867 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
diff --git a/go/parse.cc b/go/parse.cc index aa157e8..1dac002 100644 --- a/go/parse.cc +++ b/go/parse.cc
@@ -5788,7 +5788,7 @@ if (!token->is_string()) { - go_error_at(this->location(), "import statement not a string"); + go_error_at(this->location(), "import path must be a string"); this->advance_token(); return; }