mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
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:
parent
2b828bb50f
commit
dd74f44297
1 changed files with 9 additions and 1 deletions
|
@ -103,7 +103,15 @@ namespace hactoolnet
|
||||||
{
|
{
|
||||||
if (signNeeded)
|
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;
|
signNeeded = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue