]> git.localhorst.tv Git - blank.git/blobdiff - src/io/filesystem.cpp
move common exceptions to app/error
[blank.git] / src / io / filesystem.cpp
index 5a4515e78dfab5629e5ce806b0622d9822829cc2..bdea3a553efed4f3b9100da2b90de5b2e6785543 100644 (file)
@@ -1,5 +1,7 @@
 #include "filesystem.hpp"
 
+#include "../app/error.hpp"
+
 #include <cerrno>
 #include <cstdio>
 #include <cstdlib>
@@ -219,7 +221,7 @@ TempDir::TempDir() {
        char tmpl[] = "blank.XXXXXX";
        const char *name = mkdtemp(tmpl);
        if (!name) {
-               throw runtime_error("unable to create temporary directory");
+               throw SysError("unable to create temporary directory");
        }
        path = name;
 #else