Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 164261c

Browse files
authored
Merge pull request #370 from tmc-cli/minor-fix-mikko
User message fix
2 parents e022120 + 2732df3 commit 164261c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/fi/helsinki/cs/tmc/cli/command/CourseInfoCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ public void run(CommandLine args, Io io) {
6363
}
6464

6565
if (!ctx.hasLogin()) {
66-
io.println("Loading course from internet requires login.");
66+
io.println("Loading a course from a server requires login.");
6767
return;
6868
}
6969

7070
course = TmcUtil.findCourse(ctx, stringArgs[0]);
7171
if (course == null) {
72-
io.println("The course " + stringArgs[0] + " doesn't exist on this server.");
72+
io.println("The course " + stringArgs[0] + " doesn't exist on the server.");
7373
return;
7474
}
7575
printCourse(args.hasOption("a"));

src/test/java/fi/helsinki/cs/tmc/cli/command/CourseInfoCommandTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void printsErrorIfInCourseDirectoryAndGivenCourseNameThatDoesntExistOnThe
188188

189189
String[] args = {"info", "notacourse", "-i"};
190190
app.run(args);
191-
io.assertContains("doesn't exist on this server.");
191+
io.assertContains("doesn't exist on the server.");
192192
}
193193

194194
@Test

0 commit comments

Comments
 (0)