make report error and exit button as action