Skip to content

Commit

Permalink
Don't link to docs.raku.org for non-CORE types
Browse files Browse the repository at this point in the history
The default .WHY message currently always refers users to
https://docs.raku.org for documentation on undocumented types. This is
confusing for non-CORE types and could create the impression that the
docs site has many broken links/missing pages.

This commit removes the docs.raku.org reference for any types that
don't pass `CORE::{$what}:exists`
  • Loading branch information
codesections authored and lizmat committed Oct 17, 2023
1 parent feb8702 commit 6050735
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core.c/Mu.rakumod
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ my class Mu { # declared in BOOTSTRAP
$where := "type/$what";
}

"No documentation available for $what. Perhaps it can be found at https://docs.raku.org/$where.html".naive-word-wrapper
(CORE::{$what}:exists
?? "Sorry, no documentation is attached to $what."
~ " Perhaps it can be found at https://docs.raku.org/$where.html"
!! "Sorry, no documentation is attached to $what."
).naive-word-wrapper
}
}

Expand Down

0 comments on commit 6050735

Please sign in to comment.