Skip to content

Commit

Permalink
Fix line/col display in scannerctl/CliError.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehforsch committed Aug 5, 2024
1 parent 8560da1 commit 1fd0203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/scannerctl/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl Display for CliError {
self.filename,
self.kind
.as_token()
.map(|x| { format!(", line: {}, col: {}", x.position.0, x.position.1) })
.map(|x| { format!(", line: {}, col: {}", x.line_column.0, x.line_column.1) })
.unwrap_or_default(),
self.kind
)
Expand Down

0 comments on commit 1fd0203

Please sign in to comment.