evaluator: Fix an error message

This commit is contained in:
Vinícius Miguel 2021-04-06 20:36:47 -03:00
parent aa03d2723e
commit 20bcf1ecde

View File

@ -35,12 +35,8 @@ impl Evaluator {
let extension = match &file.extension { let extension = match &file.extension {
Some(extension) => extension.clone(), Some(extension) => extension.clone(),
None => { None => {
// This block *should* be unreachable // This is reached when the output file given does not have an extension or has an unsupported one
eprintln!( return Err(crate::Error::MissingExtensionError(file.path.to_path_buf()));
"{} reached Evaluator::get_decompressor without known extension.",
"[internal error]".red()
);
return Err(crate::Error::InternalError);
} }
}; };