diff --git a/src/exiftool.rs b/src/exiftool.rs index 5e3427c5..7b2f5f5c 100644 --- a/src/exiftool.rs +++ b/src/exiftool.rs @@ -26,7 +26,10 @@ impl From for ExifError { impl ExifError { pub(crate) fn is_client_error(&self) -> bool { // if exiftool bails we probably have bad input - matches!(self, Self::CommandFailed(_)) + matches!( + self, + Self::CommandFailed(_) | Self::Process(ProcessError::Timeout(_)) + ) } } diff --git a/src/ffmpeg.rs b/src/ffmpeg.rs index 0cb1a6df..b5a1def3 100644 --- a/src/ffmpeg.rs +++ b/src/ffmpeg.rs @@ -65,7 +65,10 @@ impl From for FfMpegError { impl FfMpegError { pub(crate) fn is_client_error(&self) -> bool { // Failing validation or ffmpeg bailing probably means bad input - matches!(self, Self::CommandFailed(_)) + matches!( + self, + Self::CommandFailed(_) | Self::Process(ProcessError::Timeout(_)) + ) } pub(crate) fn is_not_found(&self) -> bool { diff --git a/src/magick.rs b/src/magick.rs index 00737ef4..c59546d8 100644 --- a/src/magick.rs +++ b/src/magick.rs @@ -59,7 +59,10 @@ impl From for MagickError { impl MagickError { pub(crate) fn is_client_error(&self) -> bool { // Failing validation or imagemagick bailing probably means bad input - matches!(self, Self::CommandFailed(_)) + matches!( + self, + Self::CommandFailed(_) | Self::Process(ProcessError::Timeout(_)) + ) } }