17813: Error out if sif cache collection cannot be created.
authorTom Clegg <tom@curii.com>
Mon, 26 Jul 2021 20:01:54 +0000 (16:01 -0400)
committerTom Clegg <tom@curii.com>
Mon, 26 Jul 2021 20:01:54 +0000 (16:01 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/crunchrun/singularity.go

index 192a624d821edb3e59cc904d7c50dd839a60b7a5..741f542454e470ede35cc6f682c64c8a9b1bbf09 100644 (file)
@@ -114,7 +114,7 @@ func (e *singularityExecutor) checkImageCache(dockerImageID string, container ar
                                },
                        })
                if err != nil {
-                       e.logf("error creating '%v' collection: %s", collectionName, err)
+                       return nil, fmt.Errorf("error creating '%v' collection: %s", collectionName, err)
                }
 
        }