Skip to content

Commit e05be77

Browse files
Create throw-error.mjs
1 parent de6204f commit e05be77

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import app from "../../error.app.mjs";
2+
3+
export default {
4+
name: "Throw Error",
5+
version: "0.0.1",
6+
key: "error-throw-error",
7+
description: "Quickly throw an error from your workflow.",
8+
props: {
9+
app,
10+
errorMessage: {
11+
type: "string",
12+
label: "Error Message",
13+
description: "The error message to throw",
14+
},
15+
},
16+
type: "action",
17+
async run() {
18+
throw new Error(this.errorMessage);
19+
},
20+
};

0 commit comments

Comments
 (0)