fix inconsistent signature for aio_error