Fix: emit warning for invalid suggestions

This commit is contained in:
Pieter Vander Vennet 2024-04-23 21:42:35 +02:00
parent 578f638749
commit 56ba426ab5
6 changed files with 5 additions and 6 deletions

View file

@ -207,6 +207,9 @@ function extractHintsFrom(
validators: Validators,
Constants: Constants,
})
if(hints["suggestions"]?.indexOf(null) >= 0){
throw "A suggestion generated 'null' for "+path.join(".")+". Check the docstring, specifically 'suggestions'. Pay attention to double commas"
}
}
return hints
}