Skip to content

Commit

Permalink
fix: error mapping in database connection (#15504)
Browse files Browse the repository at this point in the history
* fix: add icons (#15122)

* added alerts

* revisions

* added icon

* spinner

* added to error map
  • Loading branch information
AAfghahi authored Jul 1, 2021
1 parent 46621fc commit 1a16c49
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ const errorAlertMapping = {
description: 'Please verify that port is open to connect.',
},
CONNECTION_INVALID_PORT_ERROR: {
message: 'The port must be a whole number less than or equal to 65535.',
message: 'Invalid Port Number',
description: 'The port must be a whole number less than or equal to 65535.',
},
CONNECTION_ACCESS_DENIED_ERROR: {
message: 'Invalid account information',
Expand All @@ -100,6 +101,10 @@ const errorAlertMapping = {
message: 'Invalid account information',
description: 'Either the username or password is incorrect.',
},
INVALID_PAYLOAD_SCHEMA: {
message: 'Incorrect Fields',
description: 'Please make sure all fields are filled out correctly',
},
};
interface DatabaseModalProps {
addDangerToast: (msg: string) => void;
Expand Down

0 comments on commit 1a16c49

Please sign in to comment.