From 4e2bcde01037974f40900a0656147a248ba96878 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Mon, 9 May 2016 14:54:22 +0200 Subject: [PATCH] Updated localtime() error message --- src/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time.c b/src/time.c index d86774f..4ab5eea 100644 --- a/src/time.c +++ b/src/time.c @@ -33,7 +33,7 @@ char * current_time(void) tmp = localtime(&t); if (tmp == NULL) { - perror("localtime"); + printf("Error: Retrieving local time failed\n"); exit(EXIT_FAILURE); }