Add simple_error helper function