mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-01 10:52:18 +00:00
Always use "MODULE PARAMS" term in errors
The theory is that this will be more searchable
This commit is contained in:
parent
0cbb352a89
commit
26fe91b02f
5 changed files with 23 additions and 44 deletions
|
@ -1450,7 +1450,7 @@ fn solve(
|
|||
Failure(vars, actual_type, expected_type, _) => {
|
||||
env.introduce(rank, &vars);
|
||||
|
||||
problems.push(TypeError::ImportParamsMismatch(
|
||||
problems.push(TypeError::ModuleParamsMismatch(
|
||||
*region,
|
||||
*module_id,
|
||||
actual_type,
|
||||
|
@ -1464,7 +1464,7 @@ fn solve(
|
|||
(Some(expected), None) => {
|
||||
let expected_type = env.uenv().var_to_error_type(*expected, Polarity::Neg);
|
||||
|
||||
problems.push(TypeError::MissingImportParams(
|
||||
problems.push(TypeError::MissingModuleParams(
|
||||
*region,
|
||||
*module_id,
|
||||
expected_type,
|
||||
|
@ -1473,7 +1473,7 @@ fn solve(
|
|||
state
|
||||
}
|
||||
(None, Some(_)) => {
|
||||
problems.push(TypeError::UnexpectedImportParams(*region, *module_id));
|
||||
problems.push(TypeError::UnexpectedModuleParams(*region, *module_id));
|
||||
|
||||
state
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue