Skip to main content

assert_error

Function assert_error 

Source
pub fn assert_error(message: Option<&Value>) -> DogeError
Expand description

Build the error a failing amaze <cond> raises. With a message (amaze cond, msg) the message value’s display form becomes the error text, mirroring bonk; without one it takes the default doge-flavored line.