Skip to content

Commit

Permalink
Merge pull request #1691 from greenbone/fix-sc-1126
Browse files Browse the repository at this point in the history
Fix line/col display in scannerctl/CliError.
  • Loading branch information
Tehforsch authored Aug 5, 2024
2 parents 71aafc7 + 1fd0203 commit 9d14839
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 9d14839

Please sign in to comment.