mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
Improve error message for a docs problem
This commit is contained in:
parent
0ca85a54fe
commit
4c0c09374d
@ -686,8 +686,8 @@ fn doc_url<'a>(
|
||||
if !exposed_values.contains(&ident) {
|
||||
// TODO return Err here
|
||||
panic!(
|
||||
"Tried to generate an automatic link in docs for `{}.{}`, but `{}` is not declared in `{}`.",
|
||||
module_name, ident, ident, module_name);
|
||||
"Tried to generate an automatic link in docs for `{}.{}`, but `{}` does not expose `{}`.",
|
||||
module_name, ident, module_name, ident);
|
||||
}
|
||||
} else {
|
||||
// This is not the home module
|
||||
|
Loading…
Reference in New Issue
Block a user