Return-Path: X-Original-To: apmail-mynewt-commits-archive@minotaur.apache.org Delivered-To: apmail-mynewt-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 10E18181DF for ; Tue, 15 Mar 2016 02:30:00 +0000 (UTC) Received: (qmail 54568 invoked by uid 500); 15 Mar 2016 02:30:00 -0000 Delivered-To: apmail-mynewt-commits-archive@mynewt.apache.org Received: (qmail 54530 invoked by uid 500); 15 Mar 2016 02:29:59 -0000 Mailing-List: contact commits-help@mynewt.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mynewt.incubator.apache.org Delivered-To: mailing list commits@mynewt.incubator.apache.org Received: (qmail 54481 invoked by uid 99); 15 Mar 2016 02:29:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2016 02:29:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 860551A043B for ; Tue, 15 Mar 2016 02:29:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.549 X-Spam-Level: X-Spam-Status: No, score=-3.549 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Ndw83U8Fi2RR for ; Tue, 15 Mar 2016 02:29:58 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id 5BDB85FACA for ; Tue, 15 Mar 2016 02:29:58 +0000 (UTC) Received: (qmail 54400 invoked by uid 99); 15 Mar 2016 02:29:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2016 02:29:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B4E23DFC55; Tue, 15 Mar 2016 02:29:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ccollins@apache.org To: commits@mynewt.incubator.apache.org Date: Tue, 15 Mar 2016 02:29:59 -0000 Message-Id: <3ba18a31a2254b4eaf8d491106393782@git.apache.org> In-Reply-To: <91203789ca4345c79e0b9f199d657763@git.apache.org> References: <91203789ca4345c79e0b9f199d657763@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [3/4] incubator-mynewt-newt git commit: Remove debug printf. Remove debug printf. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/2f21310f Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/2f21310f Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/2f21310f Branch: refs/heads/master Commit: 2f21310f8ff5bcc7d9c99626bfbd558aa1cd34ce Parents: be2c37a Author: Christopher Collins Authored: Mon Mar 14 19:23:43 2016 -0700 Committer: Christopher Collins Committed: Mon Mar 14 19:23:43 2016 -0700 ---------------------------------------------------------------------- newt/builder/load.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/2f21310f/newt/builder/load.go ---------------------------------------------------------------------- diff --git a/newt/builder/load.go b/newt/builder/load.go index 9b82362..a517b58 100644 --- a/newt/builder/load.go +++ b/newt/builder/load.go @@ -59,9 +59,12 @@ func (b *Builder) Load() error { downloadScript, bspPath, binBaseName, featureString) rsp, err := util.ShellCommand(downloadCmd) - fmt.Printf("%s", rsp) + if err != nil { + util.StatusMessage(util.VERBOSITY_DEFAULT, "%s", rsp) + return err + } - return err + return nil } func (b *Builder) Debug() error {