File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/scrolls/elder/logic Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public class LogAddCommand extends Command {
49
49
+ PREFIX_REMARKS + "was a good session " ;
50
50
51
51
public static final String MESSAGE_SUCCESS = "New log added!" ;
52
- public static final String MESSAGE_NEGATIVE_DURATION = "Duration cannot be negative ." ;
52
+ public static final String MESSAGE_NEGATIVE_DURATION = "Duration must be positive ." ;
53
53
public static final String MESSAGE_PERSONS_NOT_PAIRED = "The volunteer and befriendee are not paired." ;
54
54
55
55
/**
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public static Integer parseInt(String num) throws ParseException {
173
173
try {
174
174
return Integer .parseInt (trimmedNum );
175
175
} catch (NumberFormatException e ) {
176
- throw new ParseException ("Invalid number format. Expected a number ." , e );
176
+ throw new ParseException ("Invalid number format. Expected an integer ." , e );
177
177
}
178
178
}
179
179
}
You can’t perform that action at this time.
0 commit comments