Skip to contents

Raise an Error but Return a Value

Usage

ret_err(x, msg)

Arguments

x

value to return

msg

error message to raise

Value

x, with an error

See also

Other helpers: add_n(), ret_null(), sleep_for(), square(), timestwo()