Catch exceptions using const-reference rather than value

This commit is contained in:
Michał Janiszewski committed 2017-03-23 22:21:17 +01:00
1 parent a5744dcaee
commit de6e493049
1 file changed
+1 -1
+1 -1
View File
@@ -238,7 +238,7 @@ extern "C"
delete zip;
Memory::Free(fdata);
}
catch (Exception ex)
catch (const Exception &ex)
{
Console::Error::WriteLine(ex.GetMessage());
}