-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de6204f
commit e05be77
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import app from "../../error.app.mjs"; | ||
|
||
export default { | ||
name: "Throw Error", | ||
version: "0.0.1", | ||
key: "error-throw-error", | ||
description: "Quickly throw an error from your workflow.", | ||
props: { | ||
app, | ||
errorMessage: { | ||
type: "string", | ||
label: "Error Message", | ||
description: "The error message to throw", | ||
}, | ||
}, | ||
type: "action", | ||
async run() { | ||
throw new Error(this.errorMessage); | ||
}, | ||
}; |