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:
parent
4c3c6e757c
commit
2a63293807
@ -143,10 +143,18 @@ namespace Steamless.Model
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user