You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2017/12/14 00:31:23 UTC

[cordova-create] branch master updated: CB-12807 : updated error message to follow the template guide

This is an automated email from the ASF dual-hosted git repository.

steven pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-create.git


The following commit(s) were added to refs/heads/master by this push:
     new cf633c2  CB-12807 : updated error message to follow the template guide
cf633c2 is described below

commit cf633c2ee7ef46ee28d5baa4a53e71f84d9c894b
Author: Audrey So <au...@apache.org>
AuthorDate: Mon Jun 12 14:51:50 2017 -0700

    CB-12807 : updated error message to follow the template guide
---
 index.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/index.js b/index.js
index 9981d8c..aac2f38 100644
--- a/index.js
+++ b/index.js
@@ -204,6 +204,9 @@ module.exports = function (dir, optionalId, optionalName, cfg, extEvents) {
                 return fetch(target, tempDest, {})
                     .fail(function (err) {
                         events.emit('error', '\x1B[1m \x1B[31m Error from Cordova Fetch: ' + err.message);
+                        events.emit('error', 'The template you are trying to use is invalid.' +
+                        ' Make sure you follow the template guide found here https://cordova.apache.org/docs/en/latest/guide/cli/template.html.' +
+                        ' Templates now require a package.json.');
                         if (options.verbose) {
                             console.trace();
                         }

-- 
To stop receiving notification emails like this one, please contact
['"commits@cordova.apache.org" <co...@cordova.apache.org>'].

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org