panic

exit program with error message


Parameters

panic message :string

Attributes

code:integerreturn given exit code
unstyleddon't use default error template

Returns

  • :logical

Examples

copy
panic.code:1 "something went terribly wrong. quitting..." ; quits with the given code and ; prints a properly format error with the given message

copy
panic.unstyled "oops! that was wrong" ; quits with the default exit code (= 0) and ; just outputs a simple - unformatted - message

Related