Maybe a more evocative error message? E.g., "Styles are not supported for non-vectorial layers."