From patchwork Fri Jul 8 18:26:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9221693 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D1A3960467 for ; Fri, 8 Jul 2016 18:29:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6A792836F for ; Fri, 8 Jul 2016 18:29:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB6D32837F; Fri, 8 Jul 2016 18:29:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E79D2836F for ; Fri, 8 Jul 2016 18:29:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLaUF-0003xX-He; Fri, 08 Jul 2016 18:26:51 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLaUB-0003qv-Pd for xen-devel@lists.xenproject.org; Fri, 08 Jul 2016 18:26:47 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id 00/46-10476-760FF775; Fri, 08 Jul 2016 18:26:47 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOIsWRWlGSWpSXmKPExsXitHSDvW7ah/p wgxdXdS2+b5nM5MDocfjDFZYAxijWzLyk/IoE1owPP8sKtrFW3Ox7w9jAuJuli5GTQ0LAX+J8 /2Y2EJtNQFeiactfIJuDQ0RAReL2XgMQk1kgVGLHC0sQU1jAV2LviUiQYhagglmrP4M18gp4S hzceI0JYqCcxPnjP5lBbE6g+K4lN9lBbCEBD4nmX02MIGOEBNQk5q6Ph2gVlDg58wnYLcwCEh IHX7xgBimREOCW+NttP4GRbxaSqllIqhYwMq1i1ChOLSpLLdI1NtBLKspMzyjJTczM0TU0MNX LTS0uTkxPzUlMKtZLzs/dxAgMpHoGBsYdjBNW+R1ilORgUhLl3fesPlyILyk/pTIjsTgjvqg0 J7X4EKMMB4eSBG/Oe6CcYFFqempFWmYOMKRh0hIcPEoivOUgad7igsTc4sx0iNQpRl2OBT9ur 2USYsnLz0uVEudNAykSACnKKM2DGwGLr0uMslLCvIwMDAxCPAWpRbmZJajyrxjFORiVhHnrQa bwZOaVwG16BXQEE9ARBgFgR5QkIqSkGhgPx16qNH167NZdCZaiB4dsDDdy/PSo/H38ermxzye d8onSbgHx85eKxnYXxfUXPdwcYdAWZ3fMveddqGzWy9bXkcX9Xe4CexfJcput7PpwpJ6J4yz/ 5A8e9QoH1s9vnHStYbqd6qHYWhlDrgWBlitenYpJUZpxKa337b19f0L1DarS/ldVbFViKc5IN NRiLipOBACLjsHdqgIAAA== X-Env-Sender: prvs=9904f56b2=Ian.Jackson@citrix.com X-Msg-Ref: server-5.tower-206.messagelabs.com!1468002404!49194160!3 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20593 invoked from network); 8 Jul 2016 18:26:46 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 8 Jul 2016 18:26:46 -0000 X-IronPort-AV: E=Sophos;i="5.28,331,1464652800"; d="scan'208";a="372092133" From: Ian Jackson To: Date: Fri, 8 Jul 2016 19:26:17 +0100 Message-ID: <1468002385-4407-26-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1468002385-4407-1-git-send-email-ian.jackson@eu.citrix.com> References: <1468002385-4407-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 25/33] tcl daemons: More info in db--exec-check error X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ian Jackson --- tcl/JobDB-Executive.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcl/JobDB-Executive.tcl b/tcl/JobDB-Executive.tcl index 6c7e067..8f4ed98 100644 --- a/tcl/JobDB-Executive.tcl +++ b/tcl/JobDB-Executive.tcl @@ -170,7 +170,7 @@ proc db--exec-check {shvar stmt expected_status body} { set emsg "osstest expected status $expected_status got $status" } set context [pg_result $sh -error context] - error $emsg \ + error "db exec failed ($status, $sqlstate) $emsg" \ " while executing SQL\n$stmt\n in SQL context\n$context" \ [list OSSTEST-PSQL $status $sqlstate] }