mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
hactoolnet: Write errors to stderr
This commit is contained in:
parent
12ec4c7966
commit
474e1e031e
1 changed files with 5 additions and 5 deletions
|
@ -16,15 +16,15 @@ namespace hactoolnet
|
|||
catch (MissingKeyException ex)
|
||||
{
|
||||
string name = ex.Type == KeyType.Title ? $"Title key for rights ID {ex.Name}" : ex.Name;
|
||||
Console.WriteLine($"\nERROR: {ex.Message}\nA required key is missing.\nKey name: {name}\n");
|
||||
Console.Error.WriteLine($"\nERROR: {ex.Message}\nA required key is missing.\nKey name: {name}\n");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine($"\nERROR: {ex.Message}\n");
|
||||
Console.Error.WriteLine($"\nERROR: {ex.Message}\n");
|
||||
|
||||
Console.WriteLine("Additional information:");
|
||||
Console.WriteLine(ex.GetType().FullName);
|
||||
Console.WriteLine(ex.StackTrace);
|
||||
Console.Error.WriteLine("Additional information:");
|
||||
Console.Error.WriteLine(ex.GetType().FullName);
|
||||
Console.Error.WriteLine(ex.StackTrace);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue