Skip to content

Commit cefe54d

Browse files
Update packages/nx-plugin/src/executors/cli/executor.ts
Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
1 parent 0f3ba3a commit cefe54d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nx-plugin/src/executors/cli/executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default async function runAutorunExecutor(
5252
return {
5353
success: false,
5454
command: commandString,
55-
error: error as Error,
55+
error: error instanceof Error ? error : new Error(stringifyError(error)),
5656
};
5757
}
5858

0 commit comments

Comments
 (0)