]> git.tdb.fi Git - builder.git/blobdiff - source/dependencycache.cpp
Load builderrc from sys_data_dir to avoid the need of copying it to $HOME
[builder.git] / source / dependencycache.cpp
index 3afbf009c6a4cf42d203d68d75274ba918dce945..978a0e37b8ccb3bb96d7a56d43f0b9248fb3dbd2 100644 (file)
@@ -24,10 +24,8 @@ const StringList &DependencyCache::get_deps(const string &tgt) const
 {
        DepsMap::const_iterator i=deps.find(tgt);
        if(i==deps.end())
-       {
-               static StringList dummy;
-               return dummy;
-       }
+               throw KeyError("Unknown dependencies", tgt);
+
        return i->second;
 }