diff --git a/README.md b/README.md index fe69ce2..c019259 100644 --- a/README.md +++ b/README.md @@ -162,17 +162,22 @@ And this is the output you'll get if you run this program: 
 Narratable printout:
 \
-Error: Types mismatched for operation.
-    Diagnostic severity: error
-Begin snippet starting at line 1, column 1
+diagnostic error code: oops::my::bad (link)
+Error: oops!
+
 \
-snippet line 1: 3 + "5"
-    label starting at line 1, column 1: int
-    label starting at line 1, column 1: doesn't support these values.
-    label starting at line 1, column 1: string
-diagnostic help: Change int or string to be the right types and try again.
-diagnostic code: nu::parser::unsupported_operation
-For more details, see https://docs.rs/nu-parser/0.1.0/nu-parser/enum.ParseError.html#variant.UnsupportedOperation +Begin snippet for bad_file.rs starting +at line 2, column 3 +\ +snippet line 1: source + +\ +snippet line 2: text + highlight starting at line 1, column 3: This bit here +\ +snippet line 3: here +\ +diagnostic help: try doing it better next time?"> ### Using diff --git a/src/lib.rs b/src/lib.rs index eee1b9a..855872a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -161,17 +161,22 @@ //! 
 //! Narratable printout:
 //! \
-//! Error: Types mismatched for operation.
-//!     Diagnostic severity: error
-//! Begin snippet starting at line 1, column 1
+//! diagnostic error code: oops::my::bad (link)
+//! Error: oops!
+//! 
 //! \
-//! snippet line 1: 3 + "5"
-//!     label starting at line 1, column 1: int
-//!     label starting at line 1, column 1: doesn't support these values.
-//!     label starting at line 1, column 1: string
-//! diagnostic help: Change int or string to be the right types and try again.
-//! diagnostic code: nu::parser::unsupported_operation
-//! For more details, see https://docs.rs/nu-parser/0.1.0/nu-parser/enum.ParseError.html#variant.UnsupportedOperation +//! Begin snippet for bad_file.rs starting +//! at line 2, column 3 +//! \ +//! snippet line 1: source +//! +//! \ +//! snippet line 2: text +//! highlight starting at line 1, column 3: This bit here +//! \ +//! snippet line 3: here +//! \ +//! diagnostic help: try doing it better next time?"> //! //! ## Using //!