changed error message in case of bad tokenization.