diff --git a/src/exiftool.rs b/src/exiftool.rs index 5e3427c..7b2f5f5 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 0cb1a6d..b5a1def 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 00737ef..c59546d 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(_)) + ) } }