From: <sc...@hy...> - 2009-12-22 20:52:51
|
Author: scottmf Date: 2009-12-22 12:52:41 -0800 (Tue, 22 Dec 2009) New Revision: 14113 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=14113 Modified: trunk/src/org/hyperic/hq/hqu/rendit/metaclass/ResourceCategory.groovy Log: augmenting error message to make it less cryptic Modified: trunk/src/org/hyperic/hq/hqu/rendit/metaclass/ResourceCategory.groovy =================================================================== --- trunk/src/org/hyperic/hq/hqu/rendit/metaclass/ResourceCategory.groovy 2009-12-22 09:19:14 UTC (rev 14112) +++ trunk/src/org/hyperic/hq/hqu/rendit/metaclass/ResourceCategory.groovy 2009-12-22 20:52:41 UTC (rev 14113) @@ -523,8 +523,15 @@ def servers = svrMan.getServersByPlatformServiceType(subject, parent.instanceId, proto.instanceId) - assert servers.size() == 1, "Unable to find appropriate virtual server for " + - proto.name + " parent = " + parent.name + assert servers.size() == 1, "Cannot create any platform services of " + proto.name + " for " + parent.name + ". This is because the virtual server which relates " + + parent.name + " to the service does not exist in the database." + + " To find out which virtual server is missing, find the " + + "plugin where the platform service exists and get the server " + + "that it should belong to. >From there either remove the agent's datadir " + + "and re-initialize it or contact support for further options." + + " (instanceId=" + parent.instanceId + ")" + server = svrMan.findServerById(servers[0].id) // value -> pojo } else if (parent.isServer()) { |