Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs')
-rw-r--r--mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs b/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs
index db761c357f2..91cd65165bb 100644
--- a/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs
+++ b/mcs/class/Mono.Posix/Mono.Unix/UnixDriveInfo.cs
@@ -158,9 +158,8 @@ namespace Mono.Unix {
int r = Native.Syscall.statvfs (fstab.fs_file, out stat);
if (r == -1 && throwException) {
Native.Errno e = Native.Syscall.GetLastError ();
- throw new InvalidOperationException (
- UnixMarshal.GetErrorDescription (e),
- new UnixIOException (e));
+ throw new IOException (UnixMarshal.GetErrorDescription (e),
+ UnixMarshal.CreateExceptionForError (e));
}
else if (r == -1)
return false;