diff options
author | Matthias P. Braendli (think) <matthias@mpb.li> | 2013-02-12 14:13:29 +0100 |
---|---|---|
committer | Matthias P. Braendli (think) <matthias@mpb.li> | 2013-02-12 14:13:29 +0100 |
commit | 72046b688afc92a393f4467af5522b259ed1ad48 (patch) | |
tree | 186aa4ed8e0fde011cfe9bb565d3c9da47318af9 /src/Log.h | |
parent | f2118c3b98b2e6cce2cb78ca41977a228a7e3b5f (diff) | |
download | dabmod-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 !"); } } |