Prettify error messages for invalid component names