Commit 63db0a1
committed
always show three lines of JSON in syntax error messages
Some specific errors benefit from having the line above, like in
elm/error-message-catalog#264
Since the JSON syntax errors are always for a single position (no
context stack!) I figured I did a fix that just includes two extra
lines for all JSON syntax errors. This should not be too disruptive and
should give more of a feeling of place within the JSON file, especially
when it's a single line with something weird on it!1 parent adfbebf commit 63db0a1
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | | - | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments