Improve error handling on download button

1 job for development in 3 minutes and 26 seconds (queued for 3 seconds)