Improve error messages for custom profiles