Skip to content

Commit 064e13c

Browse files
committed
If there's an error computing the launch environment, show it.
1 parent dd4ae8d commit 064e13c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

robocorp-code/vscode-client/src/activities.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,9 @@ export async function updateLaunchEnvironment(args): Promise<{ [key: string]: st
878878
try {
879879
newEnv = await updateLaunchEnvironmentPart0(args);
880880
} catch (error) {
881+
window.showErrorMessage(
882+
`It was not properly to build the Robot launch environment for the launch. Error: ${JSON.stringify(error)}`
883+
);
881884
logError("Error computing launch env.", error, "ERROR_LAUNCH_ENV");
882885
throw error;
883886
}
@@ -990,7 +993,7 @@ export async function updateLaunchEnvironmentPart0(args): Promise<{ [key: string
990993
);
991994

992995
if (!workItemsActionResult || !workItemsActionResult.success) {
993-
OUTPUT_CHANNEL.appendLine(`No work items available. ${JSON.stringify(workItemsActionResult)}`);
996+
OUTPUT_CHANNEL.appendLine(`Unable to get work items: ${JSON.stringify(workItemsActionResult)}`);
994997
return newEnv;
995998
}
996999

0 commit comments

Comments
 (0)