You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-21Lines changed: 24 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,20 +13,18 @@ can print out like this (or in any format you like!):
13
13
14
14
<img src="https://raw.githubusercontent.com/zkat/miette/main/images/serde_json.png" alt="Hi! miette also includes a screen-reader-oriented diagnostic printer that's enabled in various situations, such as when you use NO_COLOR or CLICOLOR settings, or on CI. This behavior is also fully configurable and customizable. For example, this is what this particular diagnostic will look like when the narrated printer is enabled:
15
15
\
16
-
diagnostic error code: oops::my::bad (link)
17
-
Error: oops!
18
-
\
19
-
Begin snippet for bad_file.rs starting
20
-
at line 2, column 3
21
-
\
22
-
snippet line 1: source
16
+
Error: Received some bad JSON from the source. Unable to parse.
17
+
Caused by: missing field `foo` at line 1 column 1700
23
18
\
24
-
snippet line 2: text
25
-
highlight starting at line 1, column 3: This bit here
19
+
Begin snippet for https://api.nuget.org/v3/registration5-gz-semver2/json.net/index.json starting
20
+
at line 1, column 1659
26
21
\
27
-
snippet line 3: here
22
+
snippet line 1: gs":["json"],"title":"","version":"1.0.0"},"packageContent":"https://api.nuget.o
23
+
highlight starting at line 1, column 1699: last parsing location
28
24
\
29
-
diagnostic help: try doing it better next time?
25
+
diagnostic help: This is a bug. It might be in ruget, or it might be in the
26
+
source you're using, but it's definitely a bug and should be reported.
27
+
diagnostic error code: ruget::api::bad_json
30
28
" />
31
29
32
30
> **NOTE: You must enable the `"fancy"` crate feature to get fancy report
@@ -164,17 +162,22 @@ And this is the output you'll get if you run this program:
0 commit comments