Fix tool error message to display the correct error information.

This commit is contained in:
Paul Gauthier 2024-05-18 21:06:45 -07:00
parent fec1a646d5
commit d79a629db0

View file

@ -174,7 +174,7 @@ class Commands:
errors = self.coder.linter.lint(fname) errors = self.coder.linter.lint(fname)
except FileNotFoundError as err: except FileNotFoundError as err:
self.io.tool_error(f"Unable to lint {fname}") self.io.tool_error(f"Unable to lint {fname}")
self.io.tool_error(err) self.io.tool_error(str(err))
continue continue
if errors: if errors: