Change the method name error_add to add_error