Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pull: relay along errors encountered
Fixes #734. Capture errors after parallelized pulls. Also avoid shadowing errors on result waiting. The changed code was legacy of an oversight after the old days in which we didn't send back exit codes to the outside world. After exit codes were added to drive, the pull code was never touched. Even still though, we had logging for errors and users could see their errors. Exhibits: * Unsuccessful pull ```shell drive pull --export pdf,rtf t1; echo $? Resolving... $ drive pull --export pdf,rtf t1; echo $? Resolving... M /test-docs/t1 Modification count 1 yroceed with the changes? [Y/n]: – /test-docs/t1 err: download: failed for url "". StatusCode: 400 download: failed for url "". StatusCode: 400 255 ``` * Successful pull ```shell $ drive pull --export pdf,rtf t1; echo $? Resolving... M /test-docs/t1 Modification count 1 Proceed with the changes? [Y/n]:y Exported '/Users/emmanuelodeke/emm.odeke@gmail.com/test-docs/t1' to '/Users/emmanuelodeke/emm.odeke@gmail.com/test-docs/t1_exports/t1.rtf' Exported '/Users/emmanuelodeke/emm.odeke@gmail.com/test-docs/t1' to '/Users/emmanuelodeke/emm.odeke@gmail.com/test-docs/t1_exports/t1.pdf' 0 ```
- Loading branch information