return "", "", "", err
}
if taskp.KeepTmpOutput {
- // Is there an os.Copy?
- copyFile(v, outdir+"/"+k)
+ err = copyFile(v, outdir+"/"+k)
} else {
- os.Symlink(v, outdir+"/"+k)
+ err = os.Symlink(v, outdir+"/"+k)
+ }
+ if err != nil {
+ return "", "", "", err
}
}
}
return "", err
}
collection := arvados.Collection{}
- json.Unmarshal(buf, &collection)
- return collection.ManifestText, nil
+ err = json.Unmarshal(buf, &collection)
+ return collection.ManifestText, err
}
func runner(api IArvadosClient,
manifest, err = getKeepTmp(outdir)
} else {
manifest, err = WriteTree(kc, outdir)
- if err != nil {
- return TempFail{err}
- }
+ }
+ if err != nil {
+ return TempFail{err}
}
// Set status