From owner-svn-src-head@freebsd.org Tue Dec 13 02:27:39 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9D626C74707; Tue, 13 Dec 2016 02:27:39 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6CF491CEF; Tue, 13 Dec 2016 02:27:39 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBD2Rc4m063098; Tue, 13 Dec 2016 02:27:38 GMT (envelope-from dteske@FreeBSD.org) Received: (from dteske@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBD2Rcdh063097; Tue, 13 Dec 2016 02:27:38 GMT (envelope-from dteske@FreeBSD.org) Message-Id: <201612130227.uBD2Rcdh063097@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dteske set sender to dteske@FreeBSD.org using -f From: Devin Teske Date: Tue, 13 Dec 2016 02:27:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309986 - head/usr.sbin/bsdinstall/scripts X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2016 02:27:39 -0000 Author: dteske Date: Tue Dec 13 02:27:38 2016 New Revision: 309986 URL: https://svnweb.freebsd.org/changeset/base/309986 Log: There's an API function for displaying errors Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig Modified: head/usr.sbin/bsdinstall/scripts/wlanconfig ============================================================================== --- head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 02:25:23 2016 (r309985) +++ head/usr.sbin/bsdinstall/scripts/wlanconfig Tue Dec 13 02:27:38 2016 (r309986) @@ -167,8 +167,8 @@ EOF # if ! wpa_cli ping > /dev/null 2>&1; then if [ ! "$BSDINSTALL_CONFIGCURRENT" ]; then - $DIALOG --backtitle "$DIALOG_BACKTITLE" --title "$msg_error" --msgbox \ - "Wireless cannot be configured without making changes to the local system!" 0 0 + f_show_err "Wireless cannot be configured without %s" \ + "making changes to the local system!" exit 1 fi wpa_supplicant -B -i $1 -c "$BSDINSTALL_TMPETC/wpa_supplicant.conf") || exit 1