Error catching for map file input