isFatal property
bool
get
isFatal
Whether this hook outcome should fail the current workspace operation.
Spec semantics: after_create and before_run failures are fatal,
after_run and before_remove failures are logged and ignored.
Implementation
bool get isFatal {
if (succeeded) return false;
return kind == WorkspaceHookKind.afterCreate ||
kind == WorkspaceHookKind.beforeRun;
}