mirror of https://github.com/Icinga/icinga2.git
Make error message more user-friendly.
This commit is contained in:
parent
0d96923b45
commit
f38a389791
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue