changed error kwarg name
fixed error msg