Skip to content

refactor MarkedYAMLError.toString#33

Merged
ixti merged 1 commit intonodeca:masterfrom
scrooloose:refactor-compact
Dec 20, 2011
Merged

refactor MarkedYAMLError.toString#33
ixti merged 1 commit intonodeca:masterfrom
scrooloose:refactor-compact

Conversation

@scrooloose
Copy link
Copy Markdown
Contributor

Hey, I tweaked the output of compact errors. The commit message (copied in below) explains it pretty well. Let me know if there is anything I can do :-)

Split the toString method up so that there is now toStringFull() and
toStringCompact(), and toString(compact) delegates off depending on
whether compact was passed in.

The reason for this is because I have tweaked the display of the compact
error messages, and rather than adding more logic to toString() it
seemed more sensible to split it up.

Compact error messages now look like:

Error on line 7, col 1: could not found expected ':'

The motivation for this change is increased parsability and readability.

Split the toString method up so that there is now toStringFull() and
toStringCompact(), and toString(compact) delegates off depending on
whether compact was passed in.

The reason for this is because I have tweaked the display of the compact
error messages, and rather than adding more logic to toString() it
seemed more sensible to split it up.

Compact error messages now look like:

    Error on line 7, col 1: could not found expected ':'

The motivation for this change is increased parsability and readability.
ixti added a commit that referenced this pull request Dec 20, 2011
@ixti ixti merged commit 39cf6be into nodeca:master Dec 20, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants