- :logical
panic
exit program with error message
Parameters
panic message :string
Attributes
code | :integer | return given exit code (default: 1) |
unstyled | don't use default error template |
Returns
Examples
copypanic.unstyled "oops! that was wrong" ; quits with the default exit code (= 1) and ; just outputs a simple - unformatted - message
copypanic.code:0 "something went terribly wrong. quitting..." ; quits without an error code but still ; prints a properly formatted error with the given message