made validateListening error messages type agnostic