Report unrecognized shorthands when loading from the root module

This commit is contained in:
Agus Zubiaga 2024-06-08 14:12:01 -03:00
parent 5a1bf2b891
commit 7faff12cbf
No known key found for this signature in database
7 changed files with 245 additions and 29 deletions

View file

@ -163,6 +163,9 @@ pub(crate) mod diag {
roc_packaging::cache::roc_cache_dir().display()
)
}
LoadingProblem::UnknownPackageShorthand { shorthand, .. } => {
format!("Unknown package shorthand: {}", shorthand)
}
};
Some(Diagnostic {