diff options
author | Ariadna Vigo <arivigodr@gmail.com> | 2020-07-21 14:09:20 +0200 |
---|---|---|
committer | Ariadna Vigo <arivigodr@gmail.com> | 2020-07-21 14:09:20 +0200 |
commit | 8c50fbcab556ec7f254b8e7b10c28945ca84ef15 (patch) | |
tree | e4216024228aa43e81b80f0b402781214cf0ddf9 | |
parent | 9b88fde0f811e3f4c0ba0b54700a459697d74f6c (diff) |
Minor output improvements
-rw-r--r-- | cras.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -109,7 +109,7 @@ print_output(TaskLst tasks) { int i; - printf("Tasks due for: %s\n", ctime(&tasks.expiry)); + printf("Due date: %s\n", ctime(&tasks.expiry)); for(i = 0; i < TASK_LST_MAX_NUM; ++i) print_task(tasks, i); @@ -137,7 +137,8 @@ read_crasfile(TaskLst *tasks, const char *crasfile) die("Parsing error: task file corrupted."); if (tasklst_expired(*tasks) > 0) - die("Current task file expired: Set a new one!"); + die("Due date passed (%d tasks overdue).", + tasklst_tasks_todo(*tasks)); } static void |