Skip to content

Commit

Permalink
added to error map
Browse files Browse the repository at this point in the history
  • Loading branch information
AAfghahi committed Jul 1, 2021
1 parent af339cd commit 91abee1
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 91abee1

Please sign in to comment.