update example for new error signature