Skip to content

Commit a84ade6

Browse files
Merge pull request #44191 from Thevakumar-Luheerathan/fix-ballerina-lang-iss-44190-mast
Fix error msg when pushing bala without README.md
2 parents 593c670 + b82961d commit a84ade6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/ballerina-cli/src/main/java/io/ballerina/cli/cmd/PushCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ private static void validateReadmeAndBalToml(Path balaPath) {
379379
} catch (IOException e) {
380380
throw new ProjectException("error while validating the bala file: " + e.getMessage(), e);
381381
}
382-
throw new ProjectException("README file is missing in the bala file:" + balaPath);
382+
throw new ProjectException("README.md file is missing in the bala file:" + balaPath);
383383
}
384384

385385
private void pushBalaToCustomRepo(Path balaFilePath) {

cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/PushCommandTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ public void testPushWithoutPackageMd() throws IOException {
372372
Assert.assertTrue(projectPath.resolve("target/bala/foo-winery-any-0.1.0.bala").toFile().exists());
373373

374374
// Push
375-
String expected = "README file is missing in the bala file";
375+
String expected = "README.md file is missing in the bala file";
376376

377377
PushCommand pushCommand = new PushCommand(projectPath, printStream, printStream, false);
378378
new CommandLine(pushCommand).parseArgs();

0 commit comments

Comments
 (0)