panic

exit program with error message


Parameters

panic message :string

Attributes

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

Returns

  • :logical

Examples

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

copy
panic.code:0 "something went terribly wrong. quitting..." ; quits without an error code but still ; prints a properly formatted error with the given message

Related