Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Fix missing message in Debug of libyaml Error
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 30, 2022
1 parent bc2f0ca commit 790becc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libyaml/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ impl Debug for Error {
} {
formatter.field("kind", &format_args!("{}", kind));
}
formatter.field("problem", &self.problem);
if self.problem_mark.sys.line != 0 || self.problem_mark.sys.column != 0 {
formatter.field("problem_mark", &self.problem_mark);
} else if self.problem_offset != 0 {
Expand Down

0 comments on commit 790becc

Please sign in to comment.