diff --git a/GameRes/FileSystem.cs b/GameRes/FileSystem.cs index 47ee652e..7f77a3b6 100644 --- a/GameRes/FileSystem.cs +++ b/GameRes/FileSystem.cs @@ -481,7 +481,7 @@ namespace GameRes if (FormatCatalog.Instance.LastError is OperationCanceledException) throw FormatCatalog.Instance.LastError; else - throw new UnknownFormatException(); + throw new UnknownFormatException (FormatCatalog.Instance.LastError); } try { @@ -675,5 +675,6 @@ namespace GameRes public class UnknownFormatException : FileFormatException { public UnknownFormatException () : base (garStrings.MsgUnknownFormat) { } + public UnknownFormatException (Exception inner) : base (garStrings.MsgUnknownFormat, inner) { } } }