Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovidiu Rusu committed Dec 31, 2024
1 parent 0fff79f commit dab0e71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion sema4ai/vscode-client/src/robo/actionPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).");
}
}
Expand Down
10 changes: 1 addition & 9 deletions sema4ai/vscode-client/src/robo/agentPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ export const importAgentPackage = async (): Promise<void> => {
} 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);
}
};

Expand Down Expand Up @@ -134,7 +133,6 @@ export const createAgentPackage = async (): Promise<void> => {
} catch (err) {
const errorMsg = "Error creating Agent Package at: " + targetDir;
logError(errorMsg, err, "ERR_CREATE_ACTION_PACKAGE");
OUTPUT_CHANNEL.appendLine(errorMsg);
showErrorMessageWithShowOutputButton(errorMsg);
}
};
Expand All @@ -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);
}

Expand Down Expand Up @@ -252,8 +248,6 @@ export const updateAgentVersion = async (agentPath: string): Promise<void> => {
} catch (error) {
const errorMsg = `Failed to update the agent at: ${agentPath}`;
logError(errorMsg, error, "ERR_UPDATE_AGENT_VERSION");

OUTPUT_CHANNEL.appendLine(errorMsg);
showErrorMessageWithShowOutputButton(errorMsg);
}
};
Expand Down Expand Up @@ -285,8 +279,6 @@ export const refreshAgentSpec = async (agentPath: string): Promise<void> => {
} catch (error) {
const errorMsg = `Failed to refresh the Agent Configuration`;
logError(errorMsg, error, "ERR_REFRESH_AGENT_SPEC");

OUTPUT_CHANNEL.appendLine(errorMsg);
showErrorMessageWithShowOutputButton(errorMsg);
}
};

0 comments on commit dab0e71

Please sign in to comment.