Make the error message generic

Make the error message generic