]> git.tdb.fi Git - builder.git/blobdiff - source/config.cpp
Miscellaneous minor code cleanups
[builder.git] / source / config.cpp
index d4f9384c5b1b05b7eb93becdcdf2a2e9a9995b18..4c06c836d40936b19fc2b3e81b9e66c228573c4b 100644 (file)
@@ -34,7 +34,7 @@ const Config::Option &Config::get_option(const string &name) const
 {
        OptionMap::const_iterator i=options.find(name);
        if(i==options.end())
-               throw Exception("Tried to access nonexistent option "+name);
+               throw KeyError("Unknown option", name);
 
        return i->second;
 }