Messages and exit codes
Where messages go
- What a command made, saved or unpacked goes to standard output, as zip's and unzip's do.
-q silences it.
- Problems, questions and the update notice go to standard error, so they never get mixed into output you pipe or save.
- Each line starts with the tool's name as you typed it:
squeeze:, zip:, unsqueeze: or unzip:.
- A command handed to Apple's zip or unzip prints exactly what Apple's tool prints.
Exit codes
squeeze returns zip's exit codes, and unsqueeze unzip's, so scripts that check them keep working. When a command is handed to Apple's tool, its own code is returned.
Squeeze and zip
| Code |
Meaning |
| 0 |
Everything worked. Images or PDFs left as they were, because they wouldn't get smaller, are not errors. |
| 2 |
The archive ended unexpectedly. |
| 3 |
A damaged archive. |
| 9 |
Stopped with Control-C. Anything part-written is removed. |
| 12 |
Nothing to do: no files matched. |
| 13 |
The archive to change is missing or empty. |
| 14 |
An error while writing. |
| 15 |
A file couldn't be created. |
| 16 |
A refused command: options that contradict, or a value that isn't allowed. Nothing was done. |
| 18 |
A file couldn't be read, or an image or PDF couldn't be squeezed. The rest were done. |
Unsqueeze and unzip
| Code |
Meaning |
| 0 |
Everything worked. |
| 1 |
Done, with warnings. |
| 2 |
A damaged archive. Nothing was unpacked. |
| 9 |
The archive couldn't be found or read. |
| 10 |
A refused command: an option that isn't allowed, or options that contradict. |
| 11 |
No files matched. |
| 50 |
Not enough free space, or the archive would grow by more than largest-growth allows. Nothing was unpacked. |
| 80 |
Stopped with Control-C. No files were changed. |
| 81 |
The archive uses a method QwikSqueeze can't read. |
| 82 |
No password was given, or the wrong one. Nothing was unpacked. |
Messages you may see
| Message |
What it means |
squeeze: balanced chose a 7z archive with LZMA2 at level 1: creating backup.7z |
What squeeze is about to make, and why. |
squeeze: backup.7z was created: 107 files, 147.9 MB squeezed to 110.8 MB, saving 25%. |
Done, with the saving. |
squeeze: notes.aar was created: 40 files of 8.1 MB became 8.1 MB, larger than the files themselves. |
The files were already compressed; the archive still puts them in one file. |
zip: the password is shorter than 20 characters, so Apple's zip protects notes.zip with its classic password, which is weak. |
Use a longer password for AES-256. See passwords. |
squeeze: IMG_4814.jpg was left as it was. Squeezed, it would be 667 KB, larger than its 488 KB now. |
The image or PDF is already as small as it gets. |
squeeze: “Contract.pdf” is signed. Making it smaller would break the signature, so it was left as it was. |
Signed PDFs are never changed. |
squeeze: IMG_4810.jpg was squeezed by QwikSqueeze before, so it was left as it was; --squeeze-again squeezes it again. |
Its QwikSqueeze history says it's done. |
unsqueeze: incorrect password for tax.7z; nothing was unpacked. |
Try again with the right password. |
unsqueeze: tax.7z needs a password; nothing was unpacked. |
Give it when asked, or with --read-password. |
unsqueeze: backup.7z is damaged; nothing was unpacked. |
The archive is incomplete or broken. |