aboutsummaryrefslogtreecommitdiffstats
path: root/src/Log.h
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2013-02-12 14:13:29 +0100
committerMatthias P. Braendli (think) <matthias@mpb.li>2013-02-12 14:13:29 +0100
commit72046b688afc92a393f4467af5522b259ed1ad48 (patch)
tree186aa4ed8e0fde011cfe9bb565d3c9da47318af9 /src/Log.h
parentf2118c3b98b2e6cce2cb78ca41977a228a7e3b5f (diff)
downloaddabmod-72046b688afc92a393f4467af5522b259ed1ad48.tar.gz
dabmod-72046b688afc92a393f4467af5522b259ed1ad48.tar.bz2
dabmod-72046b688afc92a393f4467af5522b259ed1ad48.zip
add error message when logfile cannot be opened
Diffstat (limited to 'src/Log.h')
-rw-r--r--src/Log.h1
1 files changed, 1 insertions, 0 deletions
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 !");
}
}