Skip to main content

bonk_error

Function bonk_error 

Source
pub fn bonk_error(value: &Value) -> DogeError
Expand description

Build the error a bonk <expr> raises. Re-raising a caught Error value (bonk err) preserves its type, message, and original location; any other value raises a Bonk whose message is the value’s display form, so bonk 5 reads 5 and bonk "much fail" reads much fail — the text bark prints.