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: crates/apollo-parser/src/error.rs
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -21,21 +21,19 @@ use std::fmt;
21
21
/// let doc = ast.document();
22
22
/// ```
23
23
///
24
-
/// `Error` struct does not at the moment implement `Display`. We encourage you
25
-
/// to take a look at the [miette] and [annotate_snippets] integration examples
26
-
/// if you'd like to display Errors in a terminal-like environment. The
27
-
/// `Error`'s API allows for you to configure other ways to render your errors
28
-
/// as well if a terminal-like environment is not where your final output goes.
29
-
///
30
24
/// ### Diagnostics
31
25
///
32
-
/// Using something like [miette] along with apollo-parser lets you have
33
-
/// diagnostics that look like this:
26
+
/// Using something like [miette crate] along with apollo-parser lets you have
27
+
/// more visual diagnostics. [miette] and [annotate_snippets] examples guide you
28
+
/// through integrating them with apollo-parser. These are useful if you are
29
+
/// displaying Errors in a terminal-like environment.
34
30
///
35
31
/// <img src="https://raw.githubusercontent.com/apollographql/apollo-rs/main/crates/apollo-parser/screenshots/apollo_parser_error.png" alt="A screenshot of an error example produced by using apollo-parser and miette. The ascii display shows a graphql code snippet with line numbers to the left. Under the code sample there is a line pointing to where a value is missing in graphql code">
0 commit comments