X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Funix%2Fdir_location.cpp;h=68d82a27f968c37d14c1e2c42aafe1814e679570;hp=73825875fd4df979ae1b7c5fff619af6982fb133;hb=1787d4928ac1285f5434a2c8d0676deea9ce9176;hpb=3bfc22d12b893d94cbb4697a77b7cababcbbd921 diff --git a/source/fs/unix/dir_location.cpp b/source/fs/unix/dir_location.cpp index 7382587..68d82a2 100644 --- a/source/fs/unix/dir_location.cpp +++ b/source/fs/unix/dir_location.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "dir.h" using namespace std; @@ -19,7 +20,7 @@ Path get_user_data_dir() { const string &appname = Application::get_name(); if(appname.empty()) - throw logic_error("no application name"); + throw invalid_state("no application name"); return get_home_dir()/("."+appname); }