mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 06:41:23 +00:00
Start with Upper case in error messages (#5045)
## Summary To be consistent with the format used by other errors. ## Test Plan N/A.
This commit is contained in:
parent
95ee6dcb3b
commit
e1fd3965a2
1 changed files with 2 additions and 2 deletions
|
@ -231,11 +231,11 @@ impl Display for DisplayParseErrorType<'_> {
|
|||
if let Some(expected) = expected.as_ref() {
|
||||
write!(
|
||||
f,
|
||||
"expected '{expected}', but got {tok}",
|
||||
"Expected '{expected}', but got {tok}",
|
||||
tok = TruncateAtNewline(&tok)
|
||||
)
|
||||
} else {
|
||||
write!(f, "unexpected token {tok}", tok = TruncateAtNewline(&tok))
|
||||
write!(f, "Unexpected token {tok}", tok = TruncateAtNewline(&tok))
|
||||
}
|
||||
}
|
||||
ParseErrorType::Lexical(ref error) => write!(f, "{error}"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue