Skip to content

Commit

Permalink
Improve printing for verification AST error
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyMorganz committed Nov 17, 2024
1 parent 6189bc6 commit 8f6f7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ pub enum Error {
#[error("error parsing: {}", print_full_moon_errors(.0))]
ParseError(Vec<full_moon::Error>),
/// The output AST after formatting generated a parse error. This is a definite error.
#[error("INTERNAL ERROR: Output AST generated a syntax error. Please report this at https://github.com/johnnymorganz/stylua/issues\n{0:?}")]
#[error("INTERNAL ERROR: Output AST generated a syntax error. Please report this at https://github.com/johnnymorganz/stylua/issues\n{}", print_full_moon_errors(.0))]
VerificationAstError(Vec<full_moon::Error>),
/// The output AST after formatting differs from the input AST.
#[error("INTERNAL WARNING: Output AST may be different to input AST. Code correctness may have changed. Please examine the formatting diff and report any issues at https://github.com/johnnymorganz/stylua/issues")]
Expand Down

0 comments on commit 8f6f7be

Please sign in to comment.