1.3 KiB
1.3 KiB
title | description | menu | weight | introduced | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
die() function | `die()` stops the Flux script execution and returns an error message. |
|
101 | 0.82.0 |
die()
stops the Flux script execution and returns an error message.
Function type signature
(msg: string) => A
{{% caption %}}For more information, see Function type signatures.{{% /caption %}}
Parameters
msg
({{< req >}}) Error message to return.
Examples
Force a script to exit with an error message
die(msg: "This is an error message")