enhance error message on non editable layers