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)
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)