X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flib%2Fcomponent.cpp;h=77fbe122dc062dcfe9628bb8446e0d6034b7cd68;hb=4a12781c1246126e93dbc35522b71f89b919b427;hp=4fddcef79de59a9ca0ca6cf05e8a5b71ec565a79;hpb=767e28373e9710720efabc0f4f9bb3e51661c1e6;p=builder.git diff --git a/source/lib/component.cpp b/source/lib/component.cpp index 4fddcef..77fbe12 100644 --- a/source/lib/component.cpp +++ b/source/lib/component.cpp @@ -176,5 +176,8 @@ void Component::Loader::require(const string &n) void Component::Loader::source(const string &s) { - obj.sources.push_back((obj.package.get_source_directory()/s).str()); + FS::Path src_path = obj.package.get_source_directory()/s; + if(!FS::exists(src_path)) + throw IO::file_not_found(src_path.str()); + obj.sources.push_back(src_path); }