add return code error to error log if not issued