Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FF921816B for ; Wed, 17 Jun 2015 22:08:02 +0000 (UTC) Received: (qmail 61642 invoked by uid 500); 17 Jun 2015 22:08:02 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 61621 invoked by uid 500); 17 Jun 2015 22:08:02 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 61601 invoked by uid 99); 17 Jun 2015 22:08:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jun 2015 22:08:02 +0000 Date: Wed, 17 Jun 2015 22:08:02 +0000 (UTC) From: "Steve Gill (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-9163) Make engines error look less nasty MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Gill resolved CB-9163. ---------------------------- Resolution: Fixed Assignee: Steve Gill Fixed. Nicer output and plugin gets skipped instead of throwing an error when engine check not met. > Make engines error look less nasty > ---------------------------------- > > Key: CB-9163 > URL: https://issues.apache.org/jira/browse/CB-9163 > Project: Apache Cordova > Issue Type: Bug > Components: CordovaLib, Plugin Whitelist > Environment: iOS > Reporter: Shazron Abdullah > Assignee: Steve Gill > Labels: cordova-ios-4.0.x > > When installing the cordova-plugin-whitelist plugin (from master), and it doesn't fulfill the engine requirement, you get a scary error which is harmless. > {code} > $ cordova plugin add https://github.com/apache/cordova-plugin-whitelist.git#master > Fetching plugin "https://github.com/apache/cordova-plugin-whitelist.git" via git clone > Repository "https://github.com/apache/cordova-plugin-whitelist.git" checked out to git ref "master". > Installing "cordova-plugin-whitelist" for android > Installing "cordova-plugin-whitelist" for ios > Failed to install 'cordova-plugin-whitelist':CordovaError: Plugin doesn't support this project's cordova-ios version. cordova-ios: 3.8.0, failed version requirement: >=4.0.0-dev > at checkEngines (/Users/shaz/Documents/Git/Apache/cordova-lib/cordova-lib/src/plugman/install.js:119:29) > at /Users/shaz/Documents/Git/Apache/cordova-lib/cordova-lib/src/plugman/install.js:296:16 > at _fulfilled (/Users/shaz/Documents/Git/Apache/cordova-lib/cordova-lib/node_modules/q/q.js:787:54) > at self.promiseDispatch.done (/Users/shaz/Documents/Git/Apache/cordova-lib/cordova-lib/node_modules/q/q.js:816:30) > at Promise.promise.promiseDispatch (/Users/shaz/Documents/Git/Apache/cordova-lib/cordova-lib/node_modules/q/q.js:749:13) > at /Users/shaz/Documents/Git/Apache/cordova-lib/cordova-lib/node_modules/q/q.js:557:44 > at flush (/Users/shaz/Documents/Git/Apache/cordova-lib/cordova-lib/node_modules/q/q.js:108:17) > at process._tickCallback (node.js:419:13) > Plugin doesn't support this project's cordova-ios version. cordova-ios: 3.8.0, failed version requirement: >=4.0.0-dev > {code} > Change it to not have the stack-trace, and have a friendlier output. If you have the Android platform added, it succeeds in installing it also, but not sure if its because the platform tag appears first in plugin.xml (check). -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org