mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Improve error message for a docs problem
This commit is contained in:
parent
0ca85a54fe
commit
4c0c09374d
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue