Skip to content

Commit 958bb5f

Browse files
authored
Fixes out-of-order error message (#166)
1 parent 8377fcf commit 958bb5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sipnet/events.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ EventNode *readEventData(char *eventFile) {
238238
if ((year < currYear) || ((year == currYear) && (day < currDay))) {
239239
// clang-format off
240240
logError("reading event file: last event was at (%d, %d), next event is "
241-
"at (%d, %d)\n", currDay, year, day);
242-
logError("event records must be in time-ascending order\n", currYear);
241+
"at (%d, %d)\n", currYear, currDay, year, day);
242+
logError("event records must be in time-ascending order\n");
243243
// clang-format on
244244
exit(EXIT_CODE_INPUT_FILE_ERROR);
245245
}

0 commit comments

Comments
 (0)