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:
parent
4c3c6e757c
commit
2a63293807
1 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue