From 4f32eced9d01c610bd53e8c59b83bcb5402eddb5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 28 Nov 2020 12:14:40 -0800 Subject: compiler: improve error for import of non-string Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273867 --- gcc/go/gofrontend/MERGE | 2 +- gcc/go/gofrontend/parse.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/go/gofrontend') diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index 4695907..c14a10f 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -16ab9b001c214cf831bc52a7bca5a2d18e9e4f3c +534fb907c821b052dc430330708d7fa555b91fe3 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/gcc/go/gofrontend/parse.cc b/gcc/go/gofrontend/parse.cc index aa157e8..1dac002 100644 --- a/gcc/go/gofrontend/parse.cc +++ b/gcc/go/gofrontend/parse.cc @@ -5788,7 +5788,7 @@ Parse::import_spec(void*, unsigned int pragmas) 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; } -- cgit v1.1