Closed yhahn closed 8 years ago
The above commit was actually a step backward in certain cases whereby err is not an error object but rather an array of objects coming from carto (this appears to happen if reference.json changes and a old project is booted in tilemill with an invalid css property).
So, an error like:
$ ./bin/carto files/project/json/json.mml Unrecognized rule: point-width in /Users/dane/projects/TileMill/files/project/json/style.mss 5 #json { 6 point-width: 4; 7 }
Will bring down the whole server with:
node.js:63 throw e; ^
@tmcw - can you advise on how to properly trickle up the carto errors without crashing all of tilemill?
see also https://github.com/mapbox/tilemill/issues/307 which is being caused by this lack of proper error handling.
N/A
https://github.com/mapbox/tilelive.js/blob/master/lib/tilelive/mappool.js#L29-31
Map.create
is assumed to succeed duringinitialize()
- if it fails it needs to be caughthttps://github.com/mapbox/tilelive.js/blob/master/lib/tilelive/map.js#L115-117