Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"file not found" error message should be friendlier #275

Closed
catamorphism opened this issue Mar 15, 2011 · 1 comment
Closed

"file not found" error message should be friendlier #275

catamorphism opened this issue Mar 15, 2011 · 1 comment

Comments

@catamorphism
Copy link
Contributor

If I do:
$ rustc some-file-that-doesnt-exist.rs

I get:

upcall fail '.t144 != 0u', lib/io.rs:110

Indeed, the file_reader function in lib/io.rs fails with an uncaught exception if the file that's being opened doesn't exist. It would be better to print a more informative error message or to fail in a non-fatal way.

@brson
Copy link
Contributor

brson commented Jun 21, 2011

This has been fixed. Now says 'error opening some-file-that-doesnt-exist.rs'

@brson brson closed this as completed Jun 21, 2011
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
Added _SC_HOST_NAME_MAX for FreeBSD, DragonFly, BitRig and Linux (glibc and musl)

I'd have liked to also add NetBSD and OpenBSD, but I can't find where _SC_HOST_NAME_MAX is defined.
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
More cleanups related to methods.
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Oct 26, 2020
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* use codegen_unimplemented() for the try intrinsic

* Additional unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants