github.com/StackExchange/dnscontrol/v4@v4.11.0/documentation/language-reference/top-level-functions/PANIC.md (about) 1 --- 2 name: PANIC 3 parameters: 4 - message 5 parameter_types: 6 message: string 7 ts_return: never 8 --- 9 10 `PANIC` terminates the script and therefore DNSControl with an exit code of 1. This should be used if your script cannot gather enough information to generate records, for example when a HTTP request failed. 11 12 {% code title="dnsconfig.js" %} 13 ```javascript 14 PANIC("Something really bad has happened"); 15 ``` 16 {% endcode %}