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);
}