From e0bbb0e7ac86956e1ca42cb52184ad39278531ff Mon Sep 17 00:00:00 2001 From: morkt Date: Sun, 13 Dec 2015 17:11:09 +0400 Subject: [PATCH] (UnknownFormatException): propagate inner exception. --- GameRes/FileSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { } } }