doc: use error message for file name