From 6f9f5a2a19c4beefcd8d600caf0ecf98eb95b2f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Sat, 17 Oct 2015 12:17:53 +0200 Subject: [PATCH] Better error reporting --- src/sourcefile.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sourcefile.cc b/src/sourcefile.cc index dd0bd1c..5f41c2c 100644 --- a/src/sourcefile.cc +++ b/src/sourcefile.cc @@ -1,4 +1,5 @@ #include "sourcefile.h" +#include "singletons.h" #include #include @@ -28,6 +29,7 @@ std::string juci::filesystem::get_home_folder() { if((status.permissions() & 0222)>=2) { return home; } else { + Singleton::terminal()->print("Invalid permissions. Cannot write in " + home + "\n"); throw new std::exception; } }