summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2014-12-09 16:21:37 -0600
committerAndy Doan <andy.doan@linaro.org>2014-12-09 16:21:37 -0600
commit8f192b8a49614dffad176817a2be9d50f4df8696 (patch)
treeae3d35ff20053be2b02215ebdc41bd1e6d348733
parent666c62b6c1089da4430f75fe157f43e0cf69a602 (diff)
downloadpublishing-api-8f192b8a49614dffad176817a2be9d50f4df8696.tar.gz
include error if link-latest fails
Change-Id: If64417795eac3536afad56491a597dd2d1cc4f03
-rwxr-xr-xlinaro-cp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/linaro-cp.py b/linaro-cp.py
index e8d2874..d4fe6a8 100755
--- a/linaro-cp.py
+++ b/linaro-cp.py
@@ -198,7 +198,9 @@ def main():
transfer_failures = api.upload(arguments.src, arguments.dst, arguments)
if arguments.link_latest:
- api.link_latest(arguments.dst)
+ err = api.link_latest(arguments.dst)
+ if err:
+ transfer_failures.append('unable to create symlink: ' + err)
if len(transfer_failures) > 0:
sys.exit('Error: Failed to transfer:\n %s' % '\n '.join(transfer_failures))