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:00 UTC

[superset] branch lyndsi/fix-save-query created (now a019721573)

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

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


      at a019721573 Add console.error to sqlLab saveQuery action

This branch includes the following new commits:

     new a019721573 Add console.error to sqlLab saveQuery action

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by ly...@apache.org.
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 =