diff options
author | Alistair Thomas <astavale@yahoo.co.uk> | 2015-04-25 18:55:33 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-11-03 18:51:38 +0100 |
commit | 7eed6c77ff8731981c6f3cfe5e3ae5c969d8523e (patch) | |
tree | 1367bf62cd2a9b80beae0bf3d6695922f517cfb7 /vala/valagenieparser.vala | |
parent | 2215b53bdfa1d95e54e8363bd53e0ff834950ece (diff) | |
download | vala-7eed6c77ff8731981c6f3cfe5e3ae5c969d8523e.tar.gz |
genie: Amend text of indent and dedent for error messages
Fixes https://gitlab.gnome.org/GNOME/vala/issues/497
Diffstat (limited to 'vala/valagenieparser.vala')
-rw-r--r-- | vala/valagenieparser.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala index aacbaceca..92a92be65 100644 --- a/vala/valagenieparser.vala +++ b/vala/valagenieparser.vala @@ -2476,7 +2476,7 @@ public class Vala.Genie.Parser : CodeVisitor { TokenType cur = current (); TokenType pre = tokens[index-1].type; - throw new ParseError.SYNTAX ("expected declaration but got %s with previous %s", cur.to_string (), pre.to_string()); + throw new ParseError.SYNTAX ("expected a declaration after %s, but got %s", pre.to_string (), cur.to_string()); } void parse_declarations (Symbol parent, bool root = false) throws ParseError { |