cl-parser: Reword an error message

This commit is contained in:
John 2024-04-13 02:57:29 -05:00
parent fa51f14db5
commit 265db668ed

View File

@ -130,7 +130,7 @@ impl Display for ErrorKind {
ErrorKind::UnmatchedSquareBrackets => write!(f, "Unmatched square brackets"), ErrorKind::UnmatchedSquareBrackets => write!(f, "Unmatched square brackets"),
ErrorKind::Unexpected(t) => write!(f, "Encountered unexpected token `{t}`"), ErrorKind::Unexpected(t) => write!(f, "Encountered unexpected token `{t}`"),
ErrorKind::Expected { want: e, got: g } => { ErrorKind::Expected { want: e, got: g } => {
write!(f, "Expected {e}, but got {g}") write!(f, "Expected `{e}`, got `{g}`")
} }
ErrorKind::Nothing => write!(f, "Nothing found"), ErrorKind::Nothing => write!(f, "Nothing found"),
ErrorKind::Todo => write!(f, "TODO:"), ErrorKind::Todo => write!(f, "TODO:"),