Adds error messages to exceptions in maps.py