FormidableLabs / denim

A lightweight, npm-based template engine.
MIT License
16 stars 2 forks source link

Should we clear up the message when user attempts to install nonexistent template? #8

Closed ryanisinallofus closed 7 years ago

ryanisinallofus commented 7 years ago
Error: Templates path '/var/folders/pw/zjw3gw9d0n99tgnmkgyb0hg80000gn/T/denim117115-4973-3qwh7u.t846phw7b9/extracted/templates' directory not found
    at /Users/r/.nvm/versions/node/v7.1.0/lib/node_modules/denim/lib/templates.js:200:15
    at /Users/r/.nvm/versions/node/v7.1.0/lib/node_modules/denim/node_modules/graceful-fs/polyfills.js:284:29
    at FSReqWrap.oncomplete (fs.js:111:15)

I suggest:

Denim template 'template you tried to install' not found.
ryan-roemer commented 7 years ago

It's actually a programmer error to allow a user to install bad templates. And of course, all template module authors should be CI-ing their templates via dummy project creation.

I'm thinking more of something like ERROR: templates directoryNAMEnot found.

ryan-roemer commented 7 years ago

haha, we already have that.