add ERR_print_errors after "end" label.