Skip to content

Fix error message display when CSV export fails [MNG-2273]#92

Merged
bradenmacdonald merged 1 commit intomasterfrom
fix-export-error
Jul 9, 2021
Merged

Fix error message display when CSV export fails [MNG-2273]#92
bradenmacdonald merged 1 commit intomasterfrom
fix-export-error

Conversation

@bradenmacdonald
Copy link
Member

If the "Export to CSV" button fails to launch a task, it currently doesn't display the error message properly. Instead, an error message can only be seen in the browser console, which just says error is undefined.

This fixes the code so that the actual error message will be displayed:
Screen Shot 2021-06-23 at 5 44 45 PM

See https://openedx.atlassian.net/browse/TNL-8370 and https://github.com/edx/edx-platform/pull/28019 for more information about this issue.

@alfredchavez
Copy link

👍

  • I have tested it with some custom examples to probe it does not break in both cases of error(last_export_result)
  • I read through the code

@bradenmacdonald bradenmacdonald merged commit 5e849b5 into master Jul 9, 2021
@bradenmacdonald bradenmacdonald deleted the fix-export-error branch July 9, 2021 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants