UNPKG

2 kBJavaScriptView Raw
1module.exports = {
2 /* Header error messages */
3 "INVALID_LOC" : "Invalid LOC header (bad signature)",
4 "INVALID_CEN" : "Invalid CEN header (bad signature)",
5 "INVALID_END" : "Invalid END header (bad signature)",
6
7 /* ZipEntry error messages*/
8 "NO_DATA" : "Nothing to decompress",
9 "BAD_CRC" : "CRC32 checksum failed",
10 "FILE_IN_THE_WAY" : "There is a file in the way: %s",
11 "UNKNOWN_METHOD" : "Invalid/unsupported compression method",
12
13 /* Inflater error messages */
14 "AVAIL_DATA" : "inflate::Available inflate data did not terminate",
15 "INVALID_DISTANCE" : "inflate::Invalid literal/length or distance code in fixed or dynamic block",
16 "TO_MANY_CODES" : "inflate::Dynamic block code description: too many length or distance codes",
17 "INVALID_REPEAT_LEN" : "inflate::Dynamic block code description: repeat more than specified lengths",
18 "INVALID_REPEAT_FIRST" : "inflate::Dynamic block code description: repeat lengths with no first length",
19 "INCOMPLETE_CODES" : "inflate::Dynamic block code description: code lengths codes incomplete",
20 "INVALID_DYN_DISTANCE": "inflate::Dynamic block code description: invalid distance code lengths",
21 "INVALID_CODES_LEN": "inflate::Dynamic block code description: invalid literal/length code lengths",
22 "INVALID_STORE_BLOCK" : "inflate::Stored block length did not match one's complement",
23 "INVALID_BLOCK_TYPE" : "inflate::Invalid block type (type == 3)",
24
25 /* ADM-ZIP error messages */
26 "CANT_EXTRACT_FILE" : "Could not extract the file",
27 "CANT_OVERRIDE" : "Target file already exists",
28 "NO_ZIP" : "No zip file was loaded",
29 "NO_ENTRY" : "Entry doesn't exist",
30 "DIRECTORY_CONTENT_ERROR" : "A directory cannot have content",
31 "FILE_NOT_FOUND" : "File not found: %s",
32 "NOT_IMPLEMENTED" : "Not implemented",
33 "INVALID_FILENAME" : "Invalid filename",
34 "INVALID_FORMAT" : "Invalid or unsupported zip format. No END header found"
35};
\No newline at end of file