mirror of
https://github.com/denoland/deno.git
synced 2025-08-31 15:57:53 +00:00
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
This commit is contained in:
parent
882c54d5c4
commit
b78c7130e9
17 changed files with 62 additions and 35 deletions
|
@ -264,7 +264,7 @@ fn check_diagnostics(diagnostics: &[DocDiagnostic]) -> Result<(), AnyError> {
|
|||
for (line, diagnostics_by_col) in diagnostics_by_lc {
|
||||
for (col, diagnostics) in diagnostics_by_col {
|
||||
for diagnostic in diagnostics {
|
||||
log::warn!("{}", diagnostic.kind);
|
||||
log::warn!("{}", diagnostic.message());
|
||||
}
|
||||
log::warn!(
|
||||
" at {}:{}:{}\n",
|
||||
|
@ -276,7 +276,7 @@ fn check_diagnostics(diagnostics: &[DocDiagnostic]) -> Result<(), AnyError> {
|
|||
}
|
||||
}
|
||||
bail!(
|
||||
"Found {} documentation diagnostic{}.",
|
||||
"Found {} documentation lint error{}.",
|
||||
colors::bold(diagnostics.len().to_string()),
|
||||
if diagnostics.len() == 1 { "" } else { "s" }
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue