Fix a minor (but important) problem in getting error excerpts