You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Josh Soref (JIRA)" <ji...@apache.org> on 2014/03/24 20:18:45 UTC
[jira] [Created] (CB-6338) Improve error for missing template
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)