If resolve is called with no values, error will be undefined here.
Set the detail to an empty string in this case.
Merge pull request #32 from wprater/master

If resolve is called with no values, `error` will be `undefined` here.