Error in carted_layergroup, not in layer_definition

Fixing with last comments: layer_definition should not know about the
error structure.