(UnknownFormatException): propagate inner exception.

This commit is contained in:
morkt 2015-12-13 17:11:09 +04:00
parent 4969c7023e
commit e0bbb0e7ac

View File

@ -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) { }
}
}