Skip to content

Commit

Permalink
More meaningful error for loader (#361)
Browse files Browse the repository at this point in the history
Debuging the reason of this error message took me hours, so maybe this could help
  • Loading branch information
lintaba authored and Vitaly Puzrin committed Aug 24, 2017
1 parent ee191b2 commit 573ba47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/js-yaml/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ function readBlockMapping(state, nodeIndent, flowIndent) {
allowCompact = true;

} else {
throwError(state, 'incomplete explicit mapping pair; a key node is missed');
throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
}

state.position += 1;
Expand Down

0 comments on commit 573ba47

Please sign in to comment.