mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
add proper error messages for ingested files
This commit is contained in:
parent
62fcc71be3
commit
e5b88366fe
5 changed files with 86 additions and 25 deletions
|
@ -4186,9 +4186,11 @@ pub fn with_hole<'a>(
|
|||
Layout::STR,
|
||||
hole,
|
||||
),
|
||||
_ => unreachable!(
|
||||
"All of these cases should be dealt during solve, generating proper errors"
|
||||
),
|
||||
_ => {
|
||||
// This will not manifest as a real runtime error and is just returned to have a value here.
|
||||
// The actual type error during solve will be fatal.
|
||||
runtime_error(env, "Invalid type for ingested file")
|
||||
}
|
||||
}
|
||||
}
|
||||
SingleQuote(_, _, character, _) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue