Skip to content

Commit

Permalink
Show Output button when there are errors on action commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovidiu Rusu committed Dec 31, 2024
1 parent b1b941a commit 8215635
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased

- Show Output button when there are errors while running action package commands
- Show datasource configuration status in the tree
- Add Data Sources to the Packages tree
- Hover (tree item) action in root element to Setup all Data Sources
Expand Down
10 changes: 5 additions & 5 deletions sema4ai/vscode-client/src/robo/actionPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ const buildPackage = async (workspaceDir: string, outputDir: string): Promise<st
}
);
if (!result.success) {
window.showErrorMessage(`Failed to build action package: ${result.message}`);
showErrorMessageWithShowOutputButton("Failed to build the action package");
return;
}

Expand Down Expand Up @@ -1047,7 +1047,7 @@ const uploadActionPackage = async (
}
);
if (!result.success) {
window.showErrorMessage(`Failed to upload action package: ${result.message}`);
showErrorMessageWithShowOutputButton("Failed to upload action package");
return;
}

Expand All @@ -1066,7 +1066,7 @@ const getActionPackageStatus = async (
}
);
if (!result.success) {
window.showErrorMessage(`Failed to get action package status: ${result.message}`);
showErrorMessageWithShowOutputButton("Failed to get action package status");
return;
}

Expand Down Expand Up @@ -1143,7 +1143,7 @@ const createMetadataFile = async (actionPackagePath: string, outputFilePath: str
);

if (!result.success) {
window.showErrorMessage(`Failed to create the metadata file: ${result.message}`);
showErrorMessageWithShowOutputButton("Failed to create the metadata file");
return false;
}

Expand Down Expand Up @@ -1230,7 +1230,7 @@ export const publishActionPackage = async (actionPackagePath?: vscode.Uri) => {
return;
}
} catch (error) {
window.showErrorMessage(`Failed to publish action package: ${error.message}`);
showErrorMessageWithShowOutputButton("Failed to publish action package");
return;
} finally {
try {
Expand Down

0 comments on commit 8215635

Please sign in to comment.