error msg improvement to socketops