Skip to content

Commit

Permalink
Prevent error being thrown if request to app:getStatus fails
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert committed Dec 18, 2024
1 parent 96941b3 commit 90f6207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apps-engine/src/server/ProxiedApp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { AppManager } from './AppManager';
import type { AppStatus } from '../definition/AppStatus';
import { AppStatus } from '../definition/AppStatus';
import { AppsEngineException } from '../definition/exceptions';
import type { IAppAuthorInfo, IAppInfo } from '../definition/metadata';
import { AppMethod } from '../definition/metadata';
Expand Down Expand Up @@ -79,7 +79,7 @@ export class ProxiedApp {
}

public async getStatus(): Promise<AppStatus> {
return this.appRuntime.getStatus();
return this.appRuntime.getStatus().catch(() => AppStatus.UNKNOWN);
}

public async setStatus(status: AppStatus, silent?: boolean): Promise<void> {
Expand Down

0 comments on commit 90f6207

Please sign in to comment.