mirror of
https://github.com/TheShadowEevee/Sharpii-NetCore.git
synced 2025-01-11 14:58:51 -06:00
Handle all HTTP codes, not just 404
This commit is contained in:
parent
1f533ff3e9
commit
521322a013
2 changed files with 7 additions and 7 deletions
|
@ -156,9 +156,10 @@ You need to have all the required .app files, a tmd file, a tik file, and a cert
|
||||||
Ensure all files are present.
|
Ensure all files are present.
|
||||||
|
|
||||||
Exit Code: 16030/32
|
Exit Code: 16030/32
|
||||||
Invalid ID or Missing CETK (SHARPII_NET_CORE_NUSD_REMOTE_404)
|
Invalid ID or Missing CETK (SHARPII_NET_CORE_NUSD_SERVER_ERROR)
|
||||||
The remote server returned a 404 error. Check your Title ID.
|
The remote server returned an HTTP error. Check your Title ID.
|
||||||
If you have a CETK file, please place it in the same directory as Sharpii saves the NUS Files to.
|
If you have a CETK file, please place it in the same directory as Sharpii saves the NUS Files to.
|
||||||
|
The server may also actually be having issues.
|
||||||
|
|
||||||
Exit Code: 16031/33
|
Exit Code: 16031/33
|
||||||
A WebRequest Error has occured and stopped a NUS download. (SHARPII_NET_CORE_NUSD_WEBREQUEST_FAIL)
|
A WebRequest Error has occured and stopped a NUS download. (SHARPII_NET_CORE_NUSD_WEBREQUEST_FAIL)
|
||||||
|
|
|
@ -328,13 +328,12 @@ namespace Sharpii
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ex.Message == "The remote server returned an error: (404) Not Found.")
|
if (ex.Message.Contains("The remote server returned an error:"))
|
||||||
{
|
{
|
||||||
|
Console.WriteLine("The remote server returned an HTTP error. Check your Title ID.");
|
||||||
Console.WriteLine("");
|
Console.WriteLine("");
|
||||||
Console.WriteLine("The remote server returned a 404 error. Check your Title ID.");
|
Console.WriteLine("ERROR DETAILS: {0}", ex.Message);
|
||||||
Console.WriteLine("");
|
Console.WriteLine("Error: SHARPII_NET_CORE_NUSD_SERVER_ERROR");
|
||||||
Console.WriteLine("Error: SHARPII_NET_CORE_NUSD_REMOTE_404");
|
|
||||||
Console.WriteLine("");
|
|
||||||
if (OperatingSystem.Windows())
|
if (OperatingSystem.Windows())
|
||||||
{
|
{
|
||||||
Environment.Exit(0x00003E9E);
|
Environment.Exit(0x00003E9E);
|
||||||
|
|
Loading…
Reference in a new issue