Skip to content

Commit

Permalink
Plugin: (AutomaticPlugin) Add additional error messages for when fail…
Browse files Browse the repository at this point in the history
…ing to parse a valid PE file and when an exception happens during parsing.
  • Loading branch information
atom0s committed May 28, 2023
1 parent 4c3c6e7 commit 2a63293
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Steamless/Model/AutomaticPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,18 @@ public override bool ProcessFile(string file, SteamlessOptions options)
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;
Expand Down

0 comments on commit 2a63293

Please sign in to comment.