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 11, 2020
1 parent 9cd9c1f commit d1fa106
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ const KafkaSourceSection: React.FC<KafkaSourceSectionProps> = ({ title }) => {
];
placeholder = 'Add Bootstrap Servers';
} else if (kafkas.loadError) {
bootstrapServersOptions = [{ value: kafkas.loadError?.message, disabled: true }];
bootstrapServersOptions = [
{ value: `${kafkas.loadError?.message}. Try adding it manually`, disabled: true },
];
placeholder = 'Error loading Bootstrap Servers';
} else {
bootstrapServersOptions = [{ value: 'Loading Bootstrap Servers...', disabled: true }];
Expand All @@ -63,7 +65,9 @@ const KafkaSourceSection: React.FC<KafkaSourceSectionProps> = ({ title }) => {
];
placeholder = 'Add Topics';
} else if (kafkatopics.loadError) {
topicsOptions = [{ value: kafkatopics.loadError?.message, disabled: true }];
topicsOptions = [
{ value: `${kafkatopics.loadError?.message}. Try adding it manually`, disabled: true },
];
placeholder = 'Error loading Topics';
} else {
topicsOptions = [{ value: 'Loading Topics...', disabled: true }];
Expand Down

0 comments on commit d1fa106

Please sign in to comment.