Closed ghost closed 6 years ago
Hi @rob-nash 👋
That's a great idea! 👍 Since all Swift errors are convertible to NSError
, I suggest skipping the middle catch
and just pass any thrown error as the underlying error.
Will you submit a PR that implements this? 🙂
Ye I’ll take a look tomorrow morning UK time
@rob-nash cool, no stress - you're the only one asking for this feature so take your time 😄
The following explains that the folder 'clone' failed to delete.
This is likely a permissions issue or some other trivial problem. But I'm more interested in how to find the underlying error.
What's your opinion on capturing the underlying error here ?
Or something like that.
Taking inspiration from NSError, further investigation into an error could be done by unwrapping objects associated with keys like NSUnderlyingErrorKey or NSValidationMultipleErrorsError.