def report_error(message, project): if sublime.ok_cancel_dialog(message, "Disable Tern"): project.disabled = True