Remove extra '.' in error msg. RELNOTES: None PiperOrigin-RevId: 220234096
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/SkylarkImports.java b/src/main/java/com/google/devtools/build/lib/syntax/SkylarkImports.java index a339b7c..9857f0f 100644 --- a/src/main/java/com/google/devtools/build/lib/syntax/SkylarkImports.java +++ b/src/main/java/com/google/devtools/build/lib/syntax/SkylarkImports.java
@@ -154,7 +154,7 @@ @VisibleForTesting static final String INVALID_PATH_SYNTAX = - "First argument of 'load' must be a label and start with either '//', ':', or '@'."; + "First argument of 'load' must be a label and start with either '//', ':', or '@'"; @VisibleForTesting static final String INVALID_TARGET_PREFIX = "Invalid target: ";
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java index 682a8a4..438c9f4 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/SkylarkEvaluationTest.java
@@ -2224,35 +2224,35 @@ @Test public void testLoadStatementWithAbsolutePath() throws Exception { checkEvalErrorContains( - "First argument of 'load' must be a label and start with either '//', ':', or '@'.", + "First argument of 'load' must be a label and start with either '//', ':', or '@'", "load('/tmp/foo', 'arg')"); } @Test public void testLoadStatementWithRelativePath() throws Exception { checkEvalErrorContains( - "First argument of 'load' must be a label and start with either '//', ':', or '@'.", + "First argument of 'load' must be a label and start with either '//', ':', or '@'", "load('foo', 'arg')"); } @Test public void testLoadStatementWithExternalLabel() throws Exception { checkEvalErrorDoesNotContain( - "First argument of 'load' must be a label and start with either '//', ':', or '@'.", + "First argument of 'load' must be a label and start with either '//', ':', or '@'", "load('@other//foo.bzl', 'arg')"); } @Test public void testLoadStatementWithAbsoluteLabel() throws Exception { checkEvalErrorDoesNotContain( - "First argument of 'load' must be a label and start with either '//', ':', or '@'.", + "First argument of 'load' must be a label and start with either '//', ':', or '@'", "load('//foo.bzl', 'arg')"); } @Test public void testLoadStatementWithRelativeLabel() throws Exception { checkEvalErrorDoesNotContain( - "First argument of 'load' must be a label and start with either '//', ':', or '@'.", + "First argument of 'load' must be a label and start with either '//', ':', or '@'", "load(':foo.bzl', 'arg')"); }