Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Added explicit error for hresult 0x800700CE.
Browse files Browse the repository at this point in the history
  • Loading branch information
squid-box committed Jul 2, 2023
1 parent f80ddaf commit bfdda95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SevenZip/SevenZipBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ internal void CheckedExecute(int hresult, string message, CallbackBase handler)
case -2146233086:
exception = new SevenZipException("Argument is out of range. (0x80131502: E_ARGUMENTOUTOFRANGE)");
break;
case -2147024690:
exception = new SevenZipException("Filename or extension is too long. (0x800700CE: ERROR_FILENAME_EXCED_RANGE)");
break;
default:
exception = new SevenZipException(
$"Execution has failed due to an internal SevenZipSharp issue (0x{hresult:x} / {hresult}).\n" +
Expand Down

0 comments on commit bfdda95

Please sign in to comment.