Added p_run_on_error option
Added error message to jagen build