Skip to content

Commit 340d700

Browse files
author
John Doe
committed
refactor: adjust logic
1 parent a4c759b commit 340d700

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
@@ -50,7 +50,7 @@ export default async function runAutorunExecutor(
5050
return {
5151
success: false,
5252
command: commandString,
53-
error: error as Error,
53+
error: error instanceof Error ? error : new Error(`${error}`),
5454
};
5555
}
5656
}

0 commit comments

Comments
 (0)