aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sls.cpp b/src/sls.cpp
index f11cee1..0eead68 100644
--- a/src/sls.cpp
+++ b/src/sls.cpp
@@ -121,7 +121,7 @@ bool SlideStore::InitFromDir(const std::string& dir) {
struct dirent** dir_entries;
int dir_count = scandir(dir.c_str(), &dir_entries, FilterSlides, alphasort);
if(dir_count < 0) {
- fprintf(stderr, "ODR-PadEnc Error: cannot open directory '%s'\n", dir.c_str());
+ perror("ODR-PadEnc Error: cannot open slides directory");
return false;
}