1
0
Fork 0
mirror of https://github.com/atom0s/Steamless.git synced 2024-12-28 23:37:41 +01:00

Plugin: (AutomaticPlugin) Add additional error messages for when failing to parse a valid PE file and when an exception happens during parsing.

This commit is contained in:
atom0s 2023-05-28 02:08:05 -07:00
parent 4c3c6e757c
commit 2a63293807
No known key found for this signature in database
GPG key ID: 37D5FD3494D79AF8

View file

@ -143,10 +143,18 @@ namespace Steamless.Model
return false; return false;
} }
} }
else
{
this.Log("", LogMessageType.Error);
this.Log("This file does not appear to be a valid Win32 PE file. Cannot unpack!", LogMessageType.Error);
this.Log("", LogMessageType.Error);
}
} }
catch catch (Exception e)
{ {
return false; this.Log("Failed to parse or unpack the selected file due to an exception:", LogMessageType.Error);
this.Log("", LogMessageType.Error);
this.Log(e.Message, LogMessageType.Error);
} }
return false; return false;