From 7b5e4680028c41b6744b910cda6c74b515fc41b1 Mon Sep 17 00:00:00 2001 From: AAfghahi <48933336+AAfghahi@users.noreply.github.com> Date: Fri, 25 Jun 2021 13:20:12 -0400 Subject: [PATCH] feat: Arash/password field error (#15388) --- .../src/views/CRUD/data/database/DatabaseModal/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx index 63afc6ac2864d..53d4e25a2521e 100644 --- a/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx +++ b/superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx @@ -92,6 +92,14 @@ const errorAlertMapping = { CONNECTION_INVALID_PORT_ERROR: { message: 'The port must be a whole number less than or equal to 65535.', }, + CONNECTION_ACCESS_DENIED_ERROR: { + message: 'Invalid account information', + description: 'Either the username or password is incorrect.', + }, + CONNECTION_INVALID_PASSWORD_ERROR: { + message: 'Invalid account information', + description: 'Either the username or password is incorrect.', + }, }; interface DatabaseModalProps { addDangerToast: (msg: string) => void;