File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -582,8 +582,16 @@ fn shellcheck_runner(args: &[&OsStr]) -> Result<(), Error> {
582582fn spellcheck_runner ( outdir : & Path , args : & [ & str ] ) -> Result < ( ) , Error > {
583583 let bin_path = ensure_version_or_cargo_install ( outdir, "typos-cli" , "typos" , "1.34.0" ) ?;
584584
585- let status = Command :: new ( bin_path) . args ( args) . status ( ) ?;
586- if status. success ( ) { Ok ( ( ) ) } else { Err ( Error :: FailedCheck ( "typos" ) ) }
585+ match Command :: new ( bin_path) . args ( args) . status ( ) {
586+ Ok ( status) => {
587+ if status. success ( ) {
588+ Ok ( ( ) )
589+ } else {
590+ Err ( Error :: FailedCheck ( "typos" ) )
591+ }
592+ }
593+ Err ( err) => Err ( Error :: Generic ( format ! ( "failed to run typos tool: {err:?}" ) ) ) ,
594+ }
587595}
588596
589597/// Check git for tracked files matching an extension
You can’t perform that action at this time.
0 commit comments