Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught YAML error #1

Open
jasonrhodes opened this issue Mar 22, 2014 · 1 comment
Open

Uncaught YAML error #1

jasonrhodes opened this issue Mar 22, 2014 · 1 comment
Labels

Comments

@jasonrhodes
Copy link
Owner

If you use a colon (or probably other invalid YAML characters) in your page metadata, like this:


---
title: baltimore nodeschool: so much fun or stuff

---

you'll get an error but we should catch the error and give more information about the file. Right now, in the gulp version (jasonrhodes/gulp-pagemaki@ea46d69) you get an error like this:

/Users/jason/www/baltimorenodeschool.github.io/node_modules/js-yaml/lib/js-yaml/loader.js:149
  throw generateError(state, message);
        ^
YAMLException: JS-YAML: incomplete explicit mapping pair; a key node is missed at line 3, column 29:
    title: baltimore nodeschool\: learn node.js such fun events  ... 

but there is no mention of which file the bad-formed YAML came from. This probably needs to be fixed at this level and not at the gulp plugin level.

@adamkdean
Copy link

I'm having this issue, something more verbose would be amazing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants