From: Ian Jackson Subject: [OSSTEST PATCH 5/9] ms-planner: Improve an error message Date: Thu, 17 Dec 2015 17:06:04 +0000 Message-ID: <1450371968-27997-5-git-send-email-ian.jackson@eu.citrix.com> References: <1450371968-27997-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a9c0T-0005tw-9n for xen-devel@lists.xenproject.org; Thu, 17 Dec 2015 17:06:21 +0000 In-Reply-To: <1450371968-27997-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org I experienced this `die' due to mg-schema-test-database failing to borrow shared hosts properly, and added this Dumper for debugging. I have not bothered to improve any of the other quite terse `die's in ms-planner. Signed-off-by: Ian Jackson --- ms-planner | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ms-planner b/ms-planner index fc65a5b..8c2e06f 100755 --- a/ms-planner +++ b/ms-planner @@ -319,7 +319,9 @@ END my ($reso, $shareix) = ($`, $1); my $share= $currentshare{$reso}; - die unless !!$share == !!$shareix; + die Dumper($reskey, $reso, $shareix, + $plan->{Allocations}{$reskey}, $currentshare{$reso}) + unless !!$share == !!$shareix; if ($share && $share->{OnlyPreparing}) { delete $plan->{Allocations}{$reskey}; -- 1.7.10.4