From 1159cc2a43c4f6416c11e13b115fc26c63e769c5 Mon Sep 17 00:00:00 2001 From: Laurent Le Brun Date: Wed, 4 Jan 2017 12:27:39 +0000 Subject: Minor improvements to error messages. In case of conflict, show the location of the original rule. -- PiperOrigin-RevId: 143541281 MOS_MIGRATED_REVID=143541281 --- .../java/com/google/devtools/build/lib/syntax/FunctionTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/test/java') diff --git a/src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java b/src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java index 464e81cae4..2f29dfd1d4 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java @@ -325,13 +325,15 @@ public class FunctionTest extends EvaluationTestCase { @Test public void testKwargsBadKey() throws Exception { checkEvalError( - "keywords must be strings, not int", "def func(a, b): return a + b", "func('a', **{3: 1})"); + "keywords must be strings, not 'int'", + "def func(a, b): return a + b", + "func('a', **{3: 1})"); } @Test public void testKwargsIsNotDict() throws Exception { checkEvalError( - "argument after ** must be a dictionary, not int", + "argument after ** must be a dictionary, not 'int'", "def func(a, b): return a + b", "func('a', **42)"); } -- cgit v1.2.3