fix(parser/lexing/error): Improve the message of the `NoMatchesTaken` error
This error should only ever be raised, when we encountered a bug. This change notifies the user, that the situation is rather likely to be a bug and that this should be reported.
This commit is contained in:
parent
e512352f73
commit
ce1e4d83b9
|
@ -41,7 +41,7 @@ pub enum LexingError {
|
|||
impl AdditionalHelp for LexingError {
|
||||
fn additional_help(&self) -> String {
|
||||
match self {
|
||||
LexingError::NoMatchesTaken => "This token does not produce a possible match".to_owned(),
|
||||
LexingError::NoMatchesTaken => "This is probably a bug, please open an issue at the issue tracker".to_owned(),
|
||||
LexingError::UnexpectedEOF => "This eof was completely unexpected".to_owned(),
|
||||
LexingError::ExpectedArrow => "The `-` token is interpretet as a started arrow (`->`), but we could not find the arrow tip (`>`)".to_owned(),
|
||||
LexingError::UnknownCharacter(char) => {
|
||||
|
|
Reference in New Issue