modify to enhance error message to follow CLHS recommendation
modify to enhance message initially shown to follow CLHS recommendation