peteraritchie / LongPath

drop-in library to support long paths in .NET
GNU Lesser General Public License v3.0
112 stars 43 forks source link

File.cs logs to Console while handling errors in opening #50

Closed herebebeasties closed 7 years ago

herebebeasties commented 7 years ago

In GetFileHandle(...):

Console.WriteLine("error {0} with {1}\n{2}", ex.Message, normalizedPath, ex.StackTrace);
Console.WriteLine("{0} {1} {2} {3}", mode, access, share, options);

This should surely go into the exception object that is thrown, instead?