I think ```gmerr``` should be sent to ```errc``` instead of ```err```, which is nil.