Update TextAnalyzer.java

Made error message slightly more useful