diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-11-10 13:40:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 18:40:39 +0000 |
commit | b78c7130e9986ce41284f33a0803ecdf6dd6affd (patch) | |
tree | 5d20148c1e7f449f9d6baa05fe6604aafc2a14b3 /cli/tools/info.rs | |
parent | 882c54d5c407affb26012d81fea67cccfc214bb7 (diff) |
fix: improve `deno doc --lint` error messages (#21156)
This also updates deno_graph, which has the JSR change to use "exports".
It's not yet useful atm, so I've made this PR a fix about the deno doc
--lint error message improvements. I'll do a follow-up PR that adds
exports to the deno.json
Diffstat (limited to 'cli/tools/info.rs')
-rw-r--r-- | cli/tools/info.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tools/info.rs b/cli/tools/info.rs index 9321eccb7..60c2fde95 100644 --- a/cli/tools/info.rs +++ b/cli/tools/info.rs @@ -669,6 +669,12 @@ impl<'a> GraphDisplayContext<'a> { ModuleError::Missing(_, _) | ModuleError::MissingDynamic(_, _) => { self.build_error_msg(specifier, "(missing)") } + ModuleError::MissingWorkspaceMemberExports { .. } => { + self.build_error_msg(specifier, "(missing exports)") + } + ModuleError::UnknownExport { .. } => { + self.build_error_msg(specifier, "(unknown export)") + } ModuleError::UnknownPackage { .. } => { self.build_error_msg(specifier, "(unknown package)") } |