We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f025aa commit bb89d8dCopy full SHA for bb89d8d
1 file changed
packages/openops/src/lib/cloud-cli-common.ts
@@ -10,10 +10,12 @@ export function handleCliError({
10
command: string;
11
error: unknown;
12
}): never {
13
- logger.error(`${provider} CLI execution failed.`, {
14
- command,
15
- error,
16
- });
+ logger.error(
+ `${provider} CLI execution failed.`,
+ error instanceof Error
+ ? { command, error }
17
+ : { command, errorMessage: error },
18
+ );
19
20
const message = `An error occurred while running ${provider} CLI command: ${error}`;
21
0 commit comments