kitchen-site icon indicating copy to clipboard operation
kitchen-site copied to clipboard

More helpful error message for missing YAML parser

Open eadsjr opened this issue 7 years ago • 1 comments

A missing exception and a good opportunity for a better error message.

Running meteor-kitchen example-photosharing.yaml build/

Actual Output:

Source code generator for Meteor.js - www.meteorkitchen.com
Copyright (c) Petar Korponaić
<[email protected]>

Converting yaml to json using "js-yaml"...
sh: js-yaml: command not found
Reading input file... 

Error parsing JSON. Parsing stopped at line 1 char 1.

Better Output:

Source code generator for Meteor.js - www.meteorkitchen.com
Copyright (c) Petar Korponaić
<[email protected]>

Converting yaml to json using "js-yaml"...
ERROR: npm package "js-yaml" not found!
Install it with `npm install -g js-yaml`

eadsjr avatar Apr 27 '17 19:04 eadsjr

@eadsjr thanks :+1:

perak avatar Apr 27 '17 20:04 perak