Skip to content

Commit 8222f7d

Browse files
committed
tidy extra checks: use Error::FailedCheck correctly
1 parent c19d81b commit 8222f7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/tidy/src/extra_checks/rustdoc_js.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn run_eslint(
5757
if exit_status.success() {
5858
return Ok(());
5959
}
60-
Err(super::Error::FailedCheck("eslint command failed"))
60+
Err(super::Error::FailedCheck("eslint"))
6161
}
6262
Err(error) => Err(super::Error::Generic(format!("eslint command failed: {error:?}"))),
6363
}
@@ -94,7 +94,7 @@ pub(super) fn typecheck(outdir: &Path, librustdoc_path: &Path) -> Result<(), sup
9494
if exit_status.success() {
9595
return Ok(());
9696
}
97-
Err(super::Error::FailedCheck("tsc command failed"))
97+
Err(super::Error::FailedCheck("tsc"))
9898
}
9999
Err(error) => Err(super::Error::Generic(format!("tsc command failed: {error:?}"))),
100100
}
@@ -112,7 +112,7 @@ pub(super) fn es_check(outdir: &Path, librustdoc_path: &Path) -> Result<(), supe
112112
if exit_status.success() {
113113
return Ok(());
114114
}
115-
Err(super::Error::FailedCheck("es-check command failed"))
115+
Err(super::Error::FailedCheck("es-check"))
116116
}
117117
Err(error) => Err(super::Error::Generic(format!("es-check command failed: {error:?}"))),
118118
}

0 commit comments

Comments
 (0)