From 4b9118b4c0a913e0788b0937998d3ee091c8a12d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 30 Apr 2016 16:25:00 +0100 Subject: Include character location in parse failures --- src/test/java/org/zwobble/mammoth/tests/MammothTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java index 4f4c9fd..1f50fc5 100644 --- a/src/test/java/org/zwobble/mammoth/tests/MammothTests.java +++ b/src/test/java/org/zwobble/mammoth/tests/MammothTests.java @@ -198,7 +198,7 @@ public class MammothTests { () -> new DocumentConverter().addStyleMap("p =>\np[style-name=] =>")); assertThat( exception.getMessage(), - equalTo("expected token of type STRING but was of type CLOSE_SQUARE_BRACKET")); + equalTo("error reading style map at character 14: expected token of type STRING but was of type CLOSE_SQUARE_BRACKET")); } @Test -- cgit v1.2.3