aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java
diff options
context:
space:
mode:
authorGravatar Laurent Le Brun <laurentlb@google.com>2017-01-04 12:27:39 +0000
committerGravatar John Cater <jcater@google.com>2017-01-04 20:38:06 +0000
commit1159cc2a43c4f6416c11e13b115fc26c63e769c5 (patch)
tree828f6be988194970ff6de5c4831b2573d4fdf748 /src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java
parent9340550de931d952055f3d7b95fd09b96b5bed6c (diff)
Minor improvements to error messages.
In case of conflict, show the location of the original rule. -- PiperOrigin-RevId: 143541281 MOS_MIGRATED_REVID=143541281
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/syntax/FunctionTest.java6
1 files changed, 4 insertions, 2 deletions
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)");
}