Skip to content

Commit

Permalink
Call col.Name as a function
Browse files Browse the repository at this point in the history
This is a small change to get the tests running. col.Name is a function
and without calling it, `go test` fails with the following error:

```sh
./impls.go:285: Wrapf format %s arg col.Name is a func value, not called
FAIL  github.com/deusdat/arangomigo [build failed]
```
  • Loading branch information
sleepycat committed Nov 20, 2018
1 parent 70b1b9a commit 5e00441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impls.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (cl Collection) migrate(ctx context.Context, db driver.Database, extras map
options.WaitForSync = cl.WaitForSync
}
err = col.SetProperties(ctx, options)
return errors.Wrapf(err, "Couldn't update collection '%s'", col.Name)
return errors.Wrapf(err, "Couldn't update collection '%s'", col.Name())
}

return nil
Expand Down

0 comments on commit 5e00441

Please sign in to comment.