use raise() instead of err() so that err_handler is invoked