]> granicus.if.org Git - icinga2/commitdiff
Make error message more user-friendly.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 21 Jun 2013 07:03:02 +0000 (09:03 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 21 Jun 2013 07:03:02 +0000 (09:03 +0200)
lib/icinga/host.cpp

index 73cc842886192bc7865c6b255403ff576bf58a05..dcdf3f18eec4d203342cfde512a10e7fb8464e5b 100644 (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()));
        }
 }