nytai commented on a change in pull request #11500:
URL: 
https://github.com/apache/incubator-superset/pull/11500#discussion_r516917390



##########
File path: superset-frontend/src/views/CRUD/hooks.ts
##########
@@ -210,7 +210,7 @@ export function useSingleViewResource<D extends object = 
any>(
             t(
               'An error occurred while fetching %ss: %s',
               resourceLabel,
-              errMsg,
+              JSON.stringify(errMsg),

Review comment:
       This should fix the immediate issue of the error not being displayed, 
however long term we should probably surface these errors inline in the forms, 
next to the fields. We could also add validators to the form fields to ensure 
we're not sending invalid json. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to