summaryrefslogtreecommitdiffstats
path: root/cras.c
diff options
context:
space:
mode:
Diffstat (limited to 'cras.c')
-rw-r--r--cras.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cras.c b/cras.c
index 51c1e81..9a9a8ac 100644
--- a/cras.c
+++ b/cras.c
@@ -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