Give better feedback in error message about having to select a layer