[icinga-checkins] icinga.org: icinga2/master: Make error message more user-friendly.

git at icinga.org git at icinga.org
Fri Jun 21 09:08:11 CEST 2013


Module: icinga2
Branch: master
Commit: f38a389791a4a45ee6b868f62b14eab674a2cddb
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=f38a389791a4a45ee6b868f62b14eab674a2cddb

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Fri Jun 21 09:03:02 2013 +0200

Make error message more user-friendly.

---

 lib/icinga/host.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/icinga/host.cpp b/lib/icinga/host.cpp
index 73cc842..dcdf3f1 100644
--- a/lib/icinga/host.cpp
+++ b/lib/icinga/host.cpp
@@ -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()));
 	}
 }
 





More information about the icinga-checkins mailing list