minor changes in errors.py