return the error in client