Skip to content

Commit 529c038

Browse files
committed
Use dedicated error message for log file open failure
1 parent 5235072 commit 529c038

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

extension/src/loc/strings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export const selectFileTitle = vscode.l10n.t('Select file');
119119
export const enterPipelineStep = vscode.l10n.t('Enter the pipeline step to execute');
120120
export const appHostSourceNotFound = vscode.l10n.t('Could not determine the AppHost source file to open.');
121121
export const appHostSourceOpenFailed = (path: string) => vscode.l10n.t('Failed to open AppHost source file: {0}', path);
122+
export const logFileOpenFailed = (path: string) => vscode.l10n.t('Failed to open AppHost log file: {0}', path);
122123
export const logFileLabel = vscode.l10n.t('AppHost logs');
123124

124125
// CodeLens strings.

extension/src/views/AspireAppHostTreeProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
tooltipEndpoints,
1919
appHostSourceNotFound,
2020
appHostSourceOpenFailed,
21+
logFileOpenFailed,
2122
healthChecksLabel,
2223
healthCheckDescription,
2324
resourceDescriptionHealth,
@@ -761,7 +762,7 @@ export class AspireAppHostTreeProvider implements vscode.TreeDataProvider<TreeEl
761762
const document = await vscode.workspace.openTextDocument(uri);
762763
await vscode.window.showTextDocument(document, { preview: false });
763764
} catch {
764-
vscode.window.showWarningMessage(appHostSourceOpenFailed(filePath));
765+
vscode.window.showWarningMessage(logFileOpenFailed(filePath));
765766
}
766767
}
767768

0 commit comments

Comments
 (0)