diff options
Diffstat (limited to 'cli/fmt.rs')
-rw-r--r-- | cli/fmt.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cli/fmt.rs b/cli/fmt.rs index a71c41102..44afac527 100644 --- a/cli/fmt.rs +++ b/cli/fmt.rs @@ -84,12 +84,15 @@ fn check_source_files( } else { "files" }; - Err(crate::deno_error::other_error(format!( - "Found {} not formatted {} in {:?}", - not_formatted_files.len(), - f, - duration - ))) + Err( + crate::op_error::OpError::other(format!( + "Found {} not formatted {} in {:?}", + not_formatted_files.len(), + f, + duration + )) + .into(), + ) } } |