open-craft / xblock-poll

An XBlock for Polling users and displaying the result
GNU Affero General Public License v3.0
18 stars 66 forks source link

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

Closed bradenmacdonald closed 3 years ago

bradenmacdonald commented 3 years ago

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 commented 3 years ago

:+1: