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!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.