engines/sg: Make I/O error messages more informative