mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +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
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user