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 6EB9A11FF0 for ; Mon, 24 Mar 2014 19:18:52 +0000 (UTC) Received: (qmail 46167 invoked by uid 500); 24 Mar 2014 19:18:49 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 45831 invoked by uid 500); 24 Mar 2014 19:18:48 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 45738 invoked by uid 99); 24 Mar 2014 19:18:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2014 19:18:45 +0000 Date: Mon, 24 Mar 2014 19:18:45 +0000 (UTC) From: "Josh Soref (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-6338) Improve error for missing template MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Josh Soref created CB-6338: ------------------------------ Summary: Improve error for missing template Key: CB-6338 URL: https://issues.apache.org/jira/browse/CB-6338 Project: Apache Cordova Issue Type: Bug Components: CLI Affects Versions: 3.4.0 Reporter: Josh Soref Assignee: Josh Soref Priority: Minor Today when you try to create a project using a template whose path doesn't exist (typically due to a typo), you get: {quote} cordova create /tmp/xxxq a a '\{"id":"id","name":"name","lib":\{"www":\{"uri":"/tmp/xxqrtc","id":"custom","version":"0"}}}' Creating a new cordova project with name "a" and id "a" at location "/tmp/xxxq" Using custom www assets from /tmp/xxqrtc cp: no such file or directory: /tmp/xxqrtc/* {quote} The * isn't really appropriate, what doesn't exist is the template directory, not "*". {quote} cordova create /tmp/xxxq a a '\{"id":"id","name":"name","lib":\{"www":\{"uri":"/tmp/xxqrtc","id":"custom","version":"0"}}}' Creating a new cordova project with name "a" and id "a" at location "/tmp/xxxq" Using custom www assets from /tmp/xxqrtc Could not find directory: /tmp/xxqrtc {quote} If people don't think this should be handled by cli, I can host the code outside it, but... -- This message was sent by Atlassian JIRA (v6.2#6252)