Browse Source

Throw InvalidOperationException when attachment extraction exits abnormally or doesn't produce output.

Andrew Mahone 5 years ago
parent
commit
dee247453e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs

+ 1 - 1
MediaBrowser.MediaEncoding/Attachments/AttachmentExtractor.cs

@@ -250,7 +250,7 @@ namespace MediaBrowser.MediaEncoding.Attachments
 
                 _logger.LogError(msg);
 
-                throw new Exception(msg);
+                throw new InvalidOperationException(msg);
             }
             else
             {