Added generic error for bad input