Show error if no type is provided