| 123456789101112 |
- import { LaunchContext, LaunchState, LaunchStateId } from './LaunchState';
- export class FailedState implements LaunchState {
- readonly id = LaunchStateId.Failed;
- async enter(context: LaunchContext): Promise<null> {
- console.error('[LaunchStateMachine] bootstrap failed', context.error);
- const i18n = context.kernel.i18n;
- context.progress({ state: this.id, title: i18n.t('launch.failed') });
- return null;
- }
- }
|