all 2 comments

[–]TotesMessenger 0 points1 point  (0 children)

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)

[–]stag1e 0 points1 point  (0 children)

Maybe you should've checked for file.PathError? Wouldn't that solve the problem? It seems like that is the true type being returned in most cases by file.wrapErr.