X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Fprocess.cpp;h=43b7384a5a3d66d49fd708e45d7cd274795f04ac;hb=HEAD;hp=92475d4286782642dac9da3e989544947741f282;hpb=122846f0881673770d88eff7d925ecf25c01b62e;p=libs%2Fcore.git diff --git a/source/core/process.cpp b/source/core/process.cpp index 92475d4..4c5ed46 100644 --- a/source/core/process.cpp +++ b/source/core/process.cpp @@ -1,4 +1,5 @@ #include +#include "except.h" #include "process.h" #include "process_private.h" @@ -6,7 +7,7 @@ using namespace std; namespace Msp { -Process *Process::_self = 0; +Process *Process::_self = nullptr; Process::Process(const Private &p): priv(new Private(p)) @@ -78,7 +79,7 @@ void Process::execute(const FS::Path &command, const Arguments &args) unsigned Process::get_exit_code() const { if(!finished) - throw logic_error("not finished"); + throw invalid_state("not finished"); return exit_code; }