livelycode/aws-lib — pull request #50 by willwhite (2012-07-11 00:22:17+00:00)
Title: Pass Error object back rather than string.

Following the convention established by node.js core modules, this pull wraps and error string returned from AWS in an `Error()` object. This has a few advantages including that `err` can simply be thrown inside callbacks.

ec2.call('DescribeVolumes', params, function(err, result) {
if (err) throw err;
});