Skip to content

Commit

Permalink
Update error message for bootstrapServers and topics
Browse files Browse the repository at this point in the history
  • Loading branch information
divyanshiGupta committed Aug 18, 2020
1 parent 9cd9c1f commit 1b8f780
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -37,8 +37,7 @@ const KafkaSourceSection: React.FC<KafkaSourceSectionProps> = ({ title }) => {
];
placeholder = 'Add Bootstrap Servers';
} else if (kafkas.loadError) {
bootstrapServersOptions = [{ value: kafkas.loadError?.message, disabled: true }];
placeholder = 'Error loading Bootstrap Servers';
placeholder = `${kafkas.loadError?.message}. Try adding Bootstrap Servers manually.`;
} else {
bootstrapServersOptions = [{ value: 'Loading Bootstrap Servers...', disabled: true }];
placeholder = '...';
Expand All @@ -63,8 +62,7 @@ const KafkaSourceSection: React.FC<KafkaSourceSectionProps> = ({ title }) => {
];
placeholder = 'Add Topics';
} else if (kafkatopics.loadError) {
topicsOptions = [{ value: kafkatopics.loadError?.message, disabled: true }];
placeholder = 'Error loading Topics';
placeholder = `${kafkatopics.loadError?.message}. Try adding Topics manually.`;
} else {
topicsOptions = [{ value: 'Loading Topics...', disabled: true }];
placeholder = '...';
Expand Down

0 comments on commit 1b8f780

Please sign in to comment.