diff --git a/blobs_reflector/reflect.go b/blobs_reflector/reflect.go index 2ceab17..bb2d76d 100644 --- a/blobs_reflector/reflect.go +++ b/blobs_reflector/reflect.go @@ -78,6 +78,9 @@ func reflectBlobs() error { if err != nil { return errors.Err(err) } + if uploader.GetSummary().Err > 0 { + return errors.Err("not al blobs were reflected. Errors: %d", uploader.GetSummary().Err) + } return nil } diff --git a/go.mod b/go.mod index 0dc0c8a..c2cb559 100644 --- a/go.mod +++ b/go.mod @@ -18,7 +18,7 @@ require ( github.com/kr/pretty v0.1.0 // indirect github.com/lbryio/errors.go v0.0.0-20180223142025-ad03d3cc6a5c github.com/lbryio/lbry.go v1.0.15 - github.com/lbryio/reflector.go v1.0.6-0.20190706063113-bb5df9896a4e + github.com/lbryio/reflector.go v1.0.6-0.20190710153751-817fa4aa1df5 github.com/lusis/slack-test v0.0.0-20190408224659-6cf59653add2 // indirect github.com/mitchellh/go-ps v0.0.0-20170309133038-4fdf99ab2936 github.com/nikooo777/ytdl v0.0.0-20190215151411-9c7832eaf457 diff --git a/go.sum b/go.sum index 0bea8b7..8e6705f 100644 --- a/go.sum +++ b/go.sum @@ -197,8 +197,8 @@ github.com/lbryio/lbry.go v1.0.15/go.mod h1:JtyI30bU51rm0LZ/po3mQuzf++14OWb6kR/6 github.com/lbryio/lbryschema.go v0.0.0-20190428231007-c54836bca002 h1:urfYK5ElpUrAv90auPLldoVC60LwiGAcY0OE6HJB9KI= github.com/lbryio/lbryschema.go v0.0.0-20190428231007-c54836bca002/go.mod h1:dAzPCBj3CKKWBGYBZxK6tKBP5SCgY2tqd9SnQd/OyKo= github.com/lbryio/ozzo-validation v0.0.0-20170323141101-d1008ad1fd04/go.mod h1:fbG/dzobG8r95KzMwckXiLMHfFjZaBRQqC9hPs2XAQ4= -github.com/lbryio/reflector.go v1.0.6-0.20190706063113-bb5df9896a4e h1:LQKu4Z6rDVmTMVsGIlZ3zQ9ueuiIdLH20ZPtvlbtT5k= -github.com/lbryio/reflector.go v1.0.6-0.20190706063113-bb5df9896a4e/go.mod h1:7Y3YYeAKS6egH2WzwfU8f6+uNGjVHfLzKvwn+Nv3VMY= +github.com/lbryio/reflector.go v1.0.6-0.20190710153751-817fa4aa1df5 h1:dWnn/y2wiaoD6liTpsjLYhWeOSlmd7lndBtysBkX5ro= +github.com/lbryio/reflector.go v1.0.6-0.20190710153751-817fa4aa1df5/go.mod h1:7Y3YYeAKS6egH2WzwfU8f6+uNGjVHfLzKvwn+Nv3VMY= github.com/lbryio/types v0.0.0-20181001180206-594241d24e00/go.mod h1:CG3wsDv5BiVYQd5i1Jp7wGsaVyjZTJshqXeWMVKsISE= github.com/lbryio/types v0.0.0-20190422033210-321fb2abda9c h1:m3O7561xBQ00lfUVayW4c6SnpVbUDQtPUwGcGYSUYQA= github.com/lbryio/types v0.0.0-20190422033210-321fb2abda9c/go.mod h1:CG3wsDv5BiVYQd5i1Jp7wGsaVyjZTJshqXeWMVKsISE=