Refactor main() to report all errors and exit with non-zero status.
Attach a file by drag & drop or click to upload