It depends on what you need to do with the promise. Docs say this is the point of wrapError:
Wraps a non-promise error value in a promise. You can use this function if you need to pass an error to a function that requires a promise.
If you need to pass an error to a function that requires a promise, then that's what you need. If you're handling the error otherwise, then you don't need this function.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces.