mapaction / mapactionpy_controller

7 stars 6 forks source link

Incomprehesible error message is layerproperties.json references a non-existant map frame #24

Closed andrewphilipsmith closed 5 years ago

andrewphilipsmith commented 5 years ago

How to reproduce

Expected behaviour

arcmap_runner should return a meaningful descriptive error message.

Actual behaviour

This is the error message returned:

Traceback (most recent call last):
  File "C:\py27arcgis106\ArcGIS10.6\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\py27arcgis106\ArcGIS10.6\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "D:\code\github\mapactionpy_arcmap\mapactionpy_arcmap\arcmap_runner.py", line 82, in <module>
    main(args)
  File "D:\code\github\mapactionpy_arcmap\mapactionpy_arcmap\arcmap_runner.py", line 51, in main
    chef.cook(productName, countryName)
  File "mapactionpy_arcmap\map_chef.py", line 65, in cook
  File "mapactionpy_arcmap\map_chef.py", line 150, in processLayer
IndexError: list index out of range
andrewphilipsmith commented 5 years ago

This should have been openned against mapactionpy_arcmap. I have now openned https://github.com/mapaction/mapactionpy_arcmap/issues/8 instead. Closing this message here.