send error message if parameters are not correct