I think that the variant #1 is more better than another. Because usually most libraries use function(error, result) as form of callback functions.