modified Error messages of reader.py