check errors in production