X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fdir.cpp;h=0f617e58717b984db918eb51e714a8534c01a410;hp=066d88bc1fd2c461bae39b5e3700d756f2aaa5b6;hb=1787d4928ac1285f5434a2c8d0676deea9ce9176;hpb=3bfc22d12b893d94cbb4697a77b7cababcbbd921 diff --git a/source/fs/dir.cpp b/source/fs/dir.cpp index 066d88b..0f617e5 100644 --- a/source/fs/dir.cpp +++ b/source/fs/dir.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include "dir.h" #include "path.h" @@ -109,7 +110,7 @@ Path get_sys_conf_dir() { const char *argv0 = Application::get_argv0(); if(!argv0) - throw logic_error("no startup command"); + throw invalid_state("no startup command"); Path dir = get_bin_dir(argv0); @@ -128,7 +129,7 @@ Path get_sys_data_dir() { const char *argv0 = Application::get_argv0(); if(!argv0) - throw logic_error("no startup command"); + throw invalid_state("no startup command"); Path dir = get_bin_dir(argv0); @@ -144,7 +145,7 @@ Path get_sys_lib_dir() { const char *argv0 = Application::get_argv0(); if(!argv0) - throw logic_error("no startup command"); + throw invalid_state("no startup command"); Path dir = get_bin_dir(argv0);