Skip to content

Commit 75517af

Browse files
committed
Update README.md
1 parent f6bc47e commit 75517af

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ else {
5151
}
5252
</del></code></pre>
5353

54-
The more complicated your test, the bigger the benefit from JSONassert.
54+
Error Messages
55+
--------------
5556

5657
We tried to make error messages easy to understand. This is really important, since it gets hard for the eye to pick out the difference, particularly in long JSON strings. For example:
5758

@@ -63,7 +64,7 @@ returns the following:
6364

6465
friends[id=3].pets[]: Expected bird, but not found ; friends[id=3].pets[]: Contains cat, but not expected
6566

66-
Which tells you that the pets array under friend with id=3 was supposed to have a bird, but had a cat instead. (Maybe the cat ate the bird?)
67+
Which tells you that the pets array under the friend where id=3 was supposed to contain "bird", but had "cat" instead. (Maybe the cat ate the bird?)
6768

6869
* * *
6970

0 commit comments

Comments
 (0)