commit | 3833aee2589296905ed7a06e986ded7ed3cb09bb | [log] [tgz] |
---|---|---|
author | Daniel Hobe <hobeonekenobi@gmail.com> | Sun Feb 15 19:05:48 2015 -0800 |
committer | Daniel Hobe <hobeonekenobi@gmail.com> | Sun Feb 15 19:05:48 2015 -0800 |
tree | 1339dbb72c82ab323a9677ae6023291ba87dcb57 | |
parent | 8adf9e1730c55cdc590de7d49766cb2acc88d8f2 [diff] |
Return prettyprinted JSON strings for errors. This makes gomega pretty print both the actual and expected strings on an error. I find that it's easier to see the differences this way.
diff --git a/matchers/match_json_matcher.go b/matchers/match_json_matcher.go index bedf851..efc5e15 100644 --- a/matchers/match_json_matcher.go +++ b/matchers/match_json_matcher.go
@@ -57,5 +57,5 @@ return "", "", err } - return actualString, expectedString, nil + return abuf.String(), ebuf.String(), nil }