We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7bd4a1 commit e7ace42Copy full SHA for e7ace42
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: c4e00852918b91a8a365475cb5cce694ba027d9e
+refs/heads/master: 460d89156f1fcfc9613a578a7c2218308236d212
trunk/src/lib/io.rs
@@ -108,7 +108,10 @@ fn stdin() -> reader {
108
109
fn file_reader(str path) -> reader {
110
auto f = os.libc.fopen(_str.buf(path), _str.buf("r"));
111
- check (f as uint != 0u);
+ if (f as uint == 0u) {
112
+ log "error opening " + path;
113
+ fail;
114
+ }
115
ret FILE_reader(f, true);
116
}
117
0 commit comments