:: String -> Int package:hledger

Synonym for error. Used for instances where the program has decided to exit because of invalid user input, or the user pressed quit etc. This function allows error to be reserved for programmer errors.
Raises an error with a printf-specific prefix on the message string.