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

Commit 49a1ff7

Browse files
author
Irene
committed
Change config command boolean exception message
Not a boolean value -> Please write true or false
1 parent 442f735 commit 49a1ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private boolean getBooleanSendValue(String value) throws BadValueTypeException {
139139

140140
private void isBooleanValue(String newVal) throws BadValueTypeException {
141141
if (!newVal.trim().toLowerCase().equals("true") && !newVal.trim().toLowerCase().equals("false")) {
142-
throw new BadValueTypeException("Not a boolean value");
142+
throw new BadValueTypeException("Please write either true or false");
143143
}
144144
}
145145

0 commit comments

Comments
 (0)