api :memo:good first issue
Description
map.setPaintProperty(layer, key value) validates arguments but map.getPaintProperty does not. Providing a bad property key will trigger an internal error. It should trigger an error with a helpful errror message. Seen here: https://github.com/mapbox/mapbox-gl-js/issues/6030
mapbox-gl-js version: v0.43.0 and master
Steps to Trigger Behavior
map.getPaintProperty("background", "fill-radius");
Expected Behavior
something like:
"fill-radius" is not a paint property background layers"
Actual Behavior
Uncaught TypeError: Cannot read property 'value' of undefined