improve error message

This commit is contained in:
Anton-4 2024-05-10 17:18:23 +02:00
parent e735223c9a
commit 975162b53b
No known key found for this signature in database
GPG Key ID: 0971D718C0A9B937

View File

@ -130,7 +130,9 @@ impl ReplState {
ValueDef::Annotation(_, _)
| ValueDef::Body(_, _)
| ValueDef::AnnotatedBody { .. } => {
todo!("handle pattern other than identifier (which repl doesn't support)")
todo!("handle pattern other than identifier (which repl doesn't support).\
\nTip: this error can be triggered when trying to define a variable with a character that is not allowed,\
like starting with an uppercase character.")
}
ValueDef::Dbg { .. } => {
todo!("handle receiving a `dbg` - what should the repl do for that?")