twilson63/cupcake — Issue #22: Friendly message when app name already exhists
Author: akennedy
Created: 2012-02-29 04:23:02+00:00
State: open

~/apps $ cupcake sample-app
Welcome to Cupcake - 0.3.7
What Template Engine would you like?
1. jade
2. eco
3. coffeecup
4. whiskers
Enter Number:3
What Data Store would you like?
1. redis
2. nano
3. mysql
4. mongoose
5. mongoskin
Enter Number:1

fs.js:373
return binding.mkdir(pathModule._makeLong(path),
^
Error: EEXIST, file already exists './sample-app'
at Object.mkdirSync (fs.js:373:18)
at Cupcake.build_folders (/usr/local/lib/node_modules/cupcake/lib/index.js:53:29)
at /usr/local/lib/node_modules/cupcake/lib/index.js:141:13
at /usr/local/lib/node_modules/cupcake/lib/index.js:104:37
at /usr/local/lib/node_modules/cupcake/lib/index.js:117:16
at ReadStream. (/usr/local/lib/node_modules/cupcake/node_modules/ask/lib/ask.js:11:16)
at ReadStream.g (events.js:154:14)
at ReadStream.emit (events.js:67:17)
at TTY.onread (net.js:327:14)