From cac83398cf230dfaa5559b94bd7c75b7dcf03940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Wed, 6 Mar 2019 12:41:27 +0100 Subject: [core] show line and col instead of offset when JSON parsing fails --- test/style/source.test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/style/source.test.cpp') diff --git a/test/style/source.test.cpp b/test/style/source.test.cpp index f0ff1f81b4..9caba10a3f 100644 --- a/test/style/source.test.cpp +++ b/test/style/source.test.cpp @@ -130,7 +130,7 @@ TEST(Source, LoadingCorrupt) { test.styleObserver.sourceError = [&] (Source& source, std::exception_ptr error) { EXPECT_EQ("source", source.getID()); - EXPECT_EQ("Invalid value. at offset 0", util::toString(error)); + EXPECT_EQ("on line 1 col 0: Invalid value.", util::toString(error)); test.end(); }; -- cgit v1.2.1