Browse Source

Better error reporting

merge-requests/365/head
Jørgen Lien Sellæg 10 years ago
parent
commit
6f9f5a2a19
  1. 2
      src/sourcefile.cc

2
src/sourcefile.cc

@ -1,4 +1,5 @@
#include "sourcefile.h" #include "sourcefile.h"
#include "singletons.h"
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
@ -28,6 +29,7 @@ std::string juci::filesystem::get_home_folder() {
if((status.permissions() & 0222)>=2) { if((status.permissions() & 0222)>=2) {
return home; return home;
} else { } else {
Singleton::terminal()->print("Invalid permissions. Cannot write in " + home + "\n");
throw new std::exception; throw new std::exception;
} }
} }

Loading…
Cancel
Save