FailedState.ts 398 B

1234567891011
  1. import { LaunchContext, LaunchState, LaunchStateId } from './LaunchState';
  2. export class FailedState implements LaunchState {
  3. readonly id = LaunchStateId.Failed;
  4. async enter(context: LaunchContext): Promise<null> {
  5. console.error('[LaunchStateMachine] bootstrap failed', context.error);
  6. context.progress({ state: this.id, title: '初始化失败,请重试' });
  7. return null;
  8. }
  9. }