mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +00:00
evaluator: Fix an error message
This commit is contained in:
parent
aa03d2723e
commit
20bcf1ecde
@ -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);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user