m.sync: Also use result index when creating failure callback
Merge pull request #103 from purcell/patch-2

m.sync: Also use result index when creating failure callback
Merge remote-tracking branch 'origin/master' into next