updated error message to be more useful. #1025
updated error message to be more useful. #1025