Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
danmoseley committed Jun 14, 2022
1 parent ed2bc2b commit 39078f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/Common/src/Interop/Unix/Interop.IOErrors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ internal static Exception GetExceptionForIoErrno(ErrorInfo errorInfo, string? pa
return new OperationCanceledException();

case Error.EFBIG:
if (!string.IsNullOrEmpty(path)) File.AppendAllText(Path.Join(Path.GetTempPath(), $"{errorInfo.Error}.{rand}.txt"), Environment.StackTrace);
if (!string.IsNullOrEmpty(path)) File.AppendAllText(Path.Join(Path.GetTempPath(), $"{errorInfo.Error}.{rand}.txt"), Environment.StackTrace);
return new ArgumentOutOfRangeException("value", SR.ArgumentOutOfRange_FileLengthTooBig);

case Error.EEXIST:
if (string.IsNullOrEmpty(path)) File.AppendAllText(Path.Join(Path.GetTempPath(), $"{errorInfo.Error}.{rand}.txt"), Environment.StackTrace);
if (string.IsNullOrEmpty(path)) File.AppendAllText(Path.Join(Path.GetTempPath(), $"{errorInfo.Error}.{rand}.txt"), Environment.StackTrace);
if (!string.IsNullOrEmpty(path))
{
return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno);
Expand Down

0 comments on commit 39078f5

Please sign in to comment.