diff --git a/typo3/sysext/impexp/Classes/ImportExport.php b/typo3/sysext/impexp/Classes/ImportExport.php
index 4e3fcf733f53593db80233ef96fa35b61438d7c1..91451c78632bcc8e8ab62a25d599fef8d5911e50 100644
--- a/typo3/sysext/impexp/Classes/ImportExport.php
+++ b/typo3/sysext/impexp/Classes/ImportExport.php
@@ -1042,12 +1042,8 @@ class ImportExport {
 			} else {
 				$file->checkActionPermission('read');
 			}
-
-		} catch (\TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException $e) {
-			$this->error('File ' . $file->getPublicUrl() . ': ' . $e->getMessage());
-			return;
-		} catch (\TYPO3\CMS\Core\Resource\Exception\IllegalFileExtensionException $e) {
-			$this->error('File ' . $file->getPublicUrl() . ': ' . $e->getMessage());
+		} catch (\Exception $e) {
+			$this->error('Error when trying to add file ' . $file->getCombinedIdentifier() . ': ' . $e->getMessage());
 			return;
 		}
 		$fileUid = $file->getUid();