ismell/wire — comment on commit 69d15d28315db3083d7eac8f83e3907ba444a6c0
File:  line 0
By unscriptable:

Hey Raul,

Can you add a bit more of an explanation why it's better to reject() _then_ throw? I'm trying to think through the use cases. Is it just for the stack trace? If so, we could do this instead:

> resolver.reject(new Error("Query '" + name + "' returned " + result.length + " items while expecting at least " + (refObj.i + 1)));

-- John