浏览代码

Catch all exceptions coming from the deprecated parser

Equbuxu 1 年之前
父节点
当前提交
b6543a476c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/PixiEditor/Models/IO/Importer.cs

+ 1 - 1
src/PixiEditor/Models/IO/Importer.cs

@@ -106,7 +106,7 @@ internal class Importer : NotifyableObject
 
                 return doc;
             }
-            catch (InvalidFileException e)
+            catch (Exception e)
             {
                 throw new CorruptedFileException("FAILED_TO_OPEN_FILE", e);
             }