Added PurePromise.error method, for creating error promises.