autolab / Autolab-CLI

Command line autolab client that uses the Autolab API
3 stars 2 forks source link

(autolab download) Exit code of 0 is returned on error #18

Open victorhuangwq opened 4 years ago

victorhuangwq commented 4 years ago

We observed this in 2 situations:         1. when trying to download a non-existing assignment.         2. when trying to download an already downloaded assignment.            It's great that the CLI refuses to download the assignment if a directory            with that name already exists, but it returns the same exit code as a            successful download (which throws out our script).         (There may be other situations, but we haven't run into them.)

https://github.com/autolab/autolab-cli/blob/master/src/cmd/cmdimp.cpp