yousoph commented on a change in pull request #19112:
URL: https://github.com/apache/superset/pull/19112#discussion_r840977128
##########
File path: superset-frontend/src/views/CRUD/hooks.ts
##########
@@ -448,7 +448,10 @@ export function useImportResource(
t(
'An error occurred while importing %s: %s',
resourceLabel,
- error.errors.map(payload => payload.message).join('\n'),
+ [
+ ...error.errors.map(payload => payload.message),
+ 'Please re-export your file and try importing again',
Review comment:
> @kasiazjc , currently we are showing all db connection error using
toast at the bottom-right corner. Do we need to change this? @evans ^^
Agree that the bottom right toast is not the best place for error messages,
but I think we can address that in a later effort instead of trying to do it in
this fix.
(Also I think the tag is mean for @rusackas 😄 )
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]