aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-11-29 20:32:59 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-11-29 21:34:17 -0500
commitccea8dcbf61cc4483bc73ba45751e545a8f3541e (patch)
treeeb4f7109cbfe6d0e99b010bccf3d1f5b1f2b83c5 /std
parent88a7f203f9de9a78f908dc63082173e10f9bf30e (diff)
downloadzig-ccea8dcbf61cc4483bc73ba45751e545a8f3541e.tar.gz
zig-ccea8dcbf61cc4483bc73ba45751e545a8f3541e.zip
better error code for File.getEndPos failure
Diffstat (limited to 'std')
-rw-r--r--std/io.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io.zig b/std/io.zig
index d570927488..6c6c171997 100644
--- a/std/io.zig
+++ b/std/io.zig
@@ -259,7 +259,7 @@ pub const File = struct {
if (err > 0) {
return switch (err) {
system.EBADF => error.BadFd,
- system.ENOMEM => error.OutOfMemory,
+ system.ENOMEM => error.SystemResources,
else => os.unexpectedErrorPosix(err),
}
}