Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6338

Improve error for missing template

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.0
    • None
    • cordova-cli
    • None

    Description

      Today when you try to create a project using a template whose path doesn't exist (typically due to a typo), you get:

      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/*

      The * isn't really appropriate, what doesn't exist is the template directory, not "*".

      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

      If people don't think this should be handled by cli, I can host the code outside it, but...

      Attachments

        Activity

          People

            jsoref Josh Soref
            jsoref Josh Soref
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: