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

Set the `detail` to an empty string in this case.