More informative url-fetch error checking (#2049)

This commit is contained in:
Ben Kalman
2016-07-13 16:36:04 -07:00
committed by GitHub
parent 7854e7cb6f
commit d992b1c352

View File

@@ -83,7 +83,7 @@ func main() {
b := types.NewStreamingBlob(pr, ds.Database())
ds, err = ds.Commit(b)
if err != nil {
d.Chk.True(datas.ErrMergeNeeded == err)
d.Chk.Equal(datas.ErrMergeNeeded, err)
fmt.Fprintf(os.Stderr, "Could not commit, optimistic concurrency failed.")
return
}