From 72046b688afc92a393f4467af5522b259ed1ad48 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli (think)" Date: Tue, 12 Feb 2013 14:13:29 +0100 Subject: add error message when logfile cannot be opened --- src/Log.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Log.h b/src/Log.h index fb1d2f6..1222686 100644 --- a/src/Log.h +++ b/src/Log.h @@ -93,6 +93,7 @@ class LogToFile : public LogBackend { log_file = fopen(filename.c_str(), "a"); if (log_file == NULL) { + fprintf(stderr, "Cannot open log file !"); throw new std::runtime_error("Cannot open log file !"); } } -- cgit v1.2.3