You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ly...@apache.org on 2022/08/09 18:41:01 UTC

[superset] 01/01: Add console.error to sqlLab saveQuery action

This is an automated email from the ASF dual-hosted git repository.

lyndsi pushed a commit to branch lyndsi/fix-save-query
in repository https://gitbox.apache.org/repos/asf/superset.git

commit a0197215731f676bed192f1bfa1ed8573cc28ae5
Author: lyndsiWilliams <kc...@gmail.com>
AuthorDate: Tue Aug 9 13:40:44 2022 -0500

    Add console.error to sqlLab saveQuery action
---
 superset-frontend/src/SqlLab/actions/sqlLab.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/superset-frontend/src/SqlLab/actions/sqlLab.js b/superset-frontend/src/SqlLab/actions/sqlLab.js
index 1435e0d796..a7654a4d94 100644
--- a/superset-frontend/src/SqlLab/actions/sqlLab.js
+++ b/superset-frontend/src/SqlLab/actions/sqlLab.js
@@ -874,9 +874,10 @@ export function saveQuery(query) {
         dispatch(queryEditorSetTitle(query, query.name));
         return savedQuery;
       })
-      .catch(() =>
-        dispatch(addDangerToast(t('Your query could not be saved'))),
-      );
+      .catch(e => {
+        console.error(e);
+        dispatch(addDangerToast(t('Your query could not be saved')));
+      });
 }
 
 export const addSavedQueryToTabState =