zamzar / zamzar-bash

Bash Command Line Interface for the Zamzar API - convert files to 100s of formats direct from the command line.
MIT License
17 stars 5 forks source link

Failing job causes script to poll infinitely #1

Closed whyleyc closed 9 years ago

whyleyc commented 9 years ago

If a conversion job fails the script keeps polling indefinitely:

$ zamzar.sh dog.png gif
Job 312 is initialising
Job 312 is failed
Job 312 is failed
Job 312 is failed

We should update zamzar.sh to detect a failed job and output the JSON error message from the API and exit the script.