FIX: Write error to report