hactoolnet: Improve save processing error messages

Return a message indicating keys may be missing when a commit fails after replacing files in a save.
This commit is contained in:
Alex Barney 2019-12-17 22:19:27 -06:00
parent 2b828bb50f
commit dd74f44297

View file

@ -103,7 +103,15 @@ namespace hactoolnet
{
if (signNeeded)
{
save.Commit(ctx.Keyset).ThrowIfFailure();
if (save.Commit(ctx.Keyset).IsSuccess())
{
ctx.Logger.LogMessage("Successfully signed save file");
}
else
{
ctx.Logger.LogMessage("Unable to sign save file. Do you have all the required keys?");
}
signNeeded = false;
}
}