vanvalenlab / kiosk-frontend

DeepCell web application built using NodeJS, Express, React, and Webpack.
Other
1 stars 0 forks source link

Display errors for failed zip jobs and improve error formatting. #126

Closed willgraf closed 4 years ago

willgraf commented 4 years ago

Update the error handling to check for "reason" in addition to the "failures" field. "failures" is only populated by zip consumers, and is a URL encoded dictionary of Redis hashes to failure reasons. The query-string npm package was added for parsing the URL encoded "failures" string into an object, and each object is then logged as errors on the page for the user. The download button is still available for successful files. (Fixes vanvalenlab/kiosk-console#379)

Additionally, some CSS styling was added to fix the error formatting (style={{whiteSpace: 'pre-line'}}). This better displays the new line characters to keep the visual structure of the stack trace. (Fixes #118)


New Error Format