diff options
author | Theophile Ranquet <ranquet@lrde.epita.fr> | 2012-09-26 11:49:22 +0200 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2012-09-26 12:11:51 +0200 |
commit | b8e7ad588711ab1a87a7c30667a8d84fed72d75a (patch) | |
tree | fe5669f04988d19b8c85bf3cbc84b61689091c6c /tests/skeletons.at | |
parent | a974c1ec2608ffbff4780210aa4bad025d361271 (diff) | |
download | bison-b8e7ad588711ab1a87a7c30667a8d84fed72d75a.tar.gz |
errors: prefix the output with "error: "
This improves readability. This is also what gcc does.
* NEWS: Document this change.
* src/complain.c (complain_at): Prefix all errors with "error: ".
(complain_at_indent, warn_at_indent): Do not prefix the context
information of errors, which are basically just indented errors.
* tests/conflicts.at, tests/glr-regression.at, tests/input.at,
tests/named-refs.at, tests/output.at, tests/push.at,
tests/regression.at, tests/skeletons.at: Apply this change.
Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
Diffstat (limited to 'tests/skeletons.at')
-rw-r--r-- | tests/skeletons.at | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/skeletons.at b/tests/skeletons.at index 76cf0662..ec8170ca 100644 --- a/tests/skeletons.at +++ b/tests/skeletons.at @@ -157,7 +157,7 @@ start: ; ]]) AT_BISON_CHECK([[input.y]], [[1]], [[]], -[[<skeleton default value>: invalid value for %define Boolean variable 'foo' +[[<skeleton default value>: error: invalid value for %define Boolean variable 'foo' ]]) AT_CLEANUP @@ -193,8 +193,8 @@ start: ; AT_BISON_CHECK([[input1.y]], [[1]], [[]], [[input1.y: warning: foow fubar foow.y:2.3-5.3: warning: foowat fubar -input1.y: fooc fubar -fooc.y:1.1-10.5: foocat fubar +input1.y: error: fooc fubar +fooc.y:1.1-10.5: error: foocat fubar input1.y: fatal error: foof fubar ]]) @@ -264,7 +264,7 @@ start: ; ]]) AT_BISON_CHECK([[input1.y]], [[1]], [[]], -[[input1.y: non-fatal error +[[input1.y: error: non-fatal error input1.y: fatal error: M4 should exit immediately here ]]) |