diff --git a/crates/nu-std/lib/help.nu b/crates/nu-std/lib/help.nu index 6b5a9da452..de5beef8c2 100644 --- a/crates/nu-std/lib/help.nu +++ b/crates/nu-std/lib/help.nu @@ -718,4 +718,14 @@ You can also learn more at (ansi default_italic)(ansi light_cyan_underline)https let modules = (try { help modules $item --find $find }) if not ($modules | is-empty) { return $modules } + + let span = (metadata $item | get span) + error make { + msg: ("std::help::item_not_found" | error-fmt) + label: { + text: "item not found" + start: $span.start + end: $span.end + } + } }