Catch issue with empty project.json #29

jansepar opened this Issue Jul 12, 2012 · 0 comments


None yet
1 participant

jansepar commented Jul 12, 2012

If you go into test/fixtures-build (as of commit ref 644c87a), and run "mobify preview", the following error happens:

Shawns-MacBook-Air:fixtures-build shawnjan$ mobify preview
Unexpected Error.
Please report this error to

SyntaxError: Unexpected end of input
at Object.parse (native)
at Function.load (/usr/local/lib/node_modules/mobify-client/src/
at Command. (/usr/local/lib/node_modules/mobify-client/src/
at Command. (/usr/local/lib/node_modules/mobify-client/node_modules/commander/lib/commander.js:232:8)
at Command.emit (events.js:88:20)
at Command.parseArgs (/usr/local/lib/node_modules/mobify-client/node_modules/commander/lib/commander.js:399:12)
at Command.parse (/usr/local/lib/node_modules/mobify-client/node_modules/commander/lib/commander.js:349:15)
at Object. (/usr/local/lib/node_modules/mobify-client/src/
at Object. (/usr/local/lib/node_modules/mobify-client/src/
at Module._compile (module.js:432:26)

The project.json file is empty here, and I suspect this is why the error is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment