diff --git a/sema4ai/vscode-client/src/robo/actionPackage.ts b/sema4ai/vscode-client/src/robo/actionPackage.ts index d3464b87..ecc0b2a3 100644 --- a/sema4ai/vscode-client/src/robo/actionPackage.ts +++ b/sema4ai/vscode-client/src/robo/actionPackage.ts @@ -956,7 +956,6 @@ export async function createActionPackage(agentPackage?: LocalPackageMetadataInf } catch (err) { const errorMsg = "Error creating Action Package at: " + targetDir; logError(errorMsg, err, "ERR_CREATE_ACTION_PACKAGE"); - OUTPUT_CHANNEL.appendLine(errorMsg); window.showErrorMessage(errorMsg + " (see `OUTPUT > Sema4.ai` for more details)."); } } diff --git a/sema4ai/vscode-client/src/robo/agentPackage.ts b/sema4ai/vscode-client/src/robo/agentPackage.ts index 276cf020..9e7aa5aa 100644 --- a/sema4ai/vscode-client/src/robo/agentPackage.ts +++ b/sema4ai/vscode-client/src/robo/agentPackage.ts @@ -99,8 +99,7 @@ export const importAgentPackage = async (): Promise => { } catch (err) { const errorMsg = "Error importing Agent Package. Target: " + targetDir + " File: " + uriResult; logError(errorMsg, err, "ERR_IMPORT_ACTION_PACKAGE"); - OUTPUT_CHANNEL.appendLine(errorMsg); - window.showErrorMessage(errorMsg + " (see `OUTPUT > Sema4.ai` for more details)."); + showErrorMessageWithShowOutputButton(errorMsg); } }; @@ -134,7 +133,6 @@ export const createAgentPackage = async (): Promise => { } catch (err) { const errorMsg = "Error creating Agent Package at: " + targetDir; logError(errorMsg, err, "ERR_CREATE_ACTION_PACKAGE"); - OUTPUT_CHANNEL.appendLine(errorMsg); showErrorMessageWithShowOutputButton(errorMsg); } }; @@ -154,8 +152,6 @@ export const packAgentPackage = async (targetDir: string): Promise<{ zipPath: st } catch (error) { const errorMsg = `Failed to package the agent at: ${targetDir}`; logError(errorMsg, error, "ERR_PACK_ACTION_PACKAGE"); - - OUTPUT_CHANNEL.appendLine(errorMsg); showErrorMessageWithShowOutputButton(errorMsg); } @@ -252,8 +248,6 @@ export const updateAgentVersion = async (agentPath: string): Promise => { } catch (error) { const errorMsg = `Failed to update the agent at: ${agentPath}`; logError(errorMsg, error, "ERR_UPDATE_AGENT_VERSION"); - - OUTPUT_CHANNEL.appendLine(errorMsg); showErrorMessageWithShowOutputButton(errorMsg); } }; @@ -285,8 +279,6 @@ export const refreshAgentSpec = async (agentPath: string): Promise => { } catch (error) { const errorMsg = `Failed to refresh the Agent Configuration`; logError(errorMsg, error, "ERR_REFRESH_AGENT_SPEC"); - - OUTPUT_CHANNEL.appendLine(errorMsg); showErrorMessageWithShowOutputButton(errorMsg); } };