Documentation

die() function

die() stops the Flux script execution and returns an error message.

Function type signature
(msg: string) => A

For more information, see Function type signatures.

Parameters

msg

(Required) Error message to return.

Examples

Force a script to exit with an error message

die(msg: "This is an error message")

Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more