Make error message more user-friendly.

This commit is contained in:
Gunnar Beutner 2013-06-21 09:03:02 +02:00
parent 0d96923b45
commit f38a389791
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ Service::Ptr Host::GetServiceByShortName(const Value& name) const
return Service::GetByNamePair(dict->Get("host"), dict->Get("service"));
} else {
BOOST_THROW_EXCEPTION(std::invalid_argument("Host/Service name pair is invalid."));
BOOST_THROW_EXCEPTION(std::invalid_argument("Host/Service name pair is invalid: " + name.Serialize()));
}
}