Handle errors

File conversion reports failure in the same three places in C++ and Python: a false return, status, and last_error_message. The output file is not written. Read status to tell a missing input apart from an existing output, a missing output directory, a missing spectral database, or a failure while configuring, reading, correcting the lens, applying the matrix, scaling, cropping, or writing.

These examples use soft crop and leave overwrite false. A second run on the same input fails because <stem>_aces.exr is already beside the input. The command prints that reason and a hint to pass --overwrite, then exits non-zero. It stops a batch at the first failed file.

Solver calls use the same false return and last_error_message. They do not use ImageConverter.Status. See solve from metadata and solve from spectra.

rawtoaces --crop-mode soft photo.dng

See also OpenImageIO buffers for a check after each pipeline step.