ao: better error reporting on failed files