Skip to content

rustc: print filename if file cannot be written #21333

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

Merged
merged 1 commit into from
Jan 22, 2015

Conversation

stepancheg
Copy link
Contributor

File cannot be written, for example, if directory does not exist.

Before this commit:

% rustc -o nonexistent/program program.rs
error: could not write output: No such file or directory

With this commit:

% rustc -o nonexistent/program program.rs
error: could not write output to nonexistent/program.0.o: No such file or directory

This is useful when full rust command is not displayed, or when last error is followed by thousands of warnings.

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

File cannot be written, for example, if directory does not exist.

Before this commit:

```
% rustc -o nonexistent/program program.rs
error: could not write output: No such file or directory
```

With this commit:

```
% rustc -o nonexistent/program program.rs
error: could not write output to nonexistent/program.0.o: No such file or directory
```

This is useful when full rust command is not displayed, or when last
error is preceded by thousands of warnings.
@stepancheg
Copy link
Contributor Author

Now PR is correct. Perfectionist inside of me does not allow different emails in git log.

Could you please r+ again?

@alexcrichton
Copy link
Member

@bors: r+ fa01251

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 21, 2015
File cannot be written, for example, if directory does not exist.

Before this commit:

```
% rustc -o nonexistent/program program.rs
error: could not write output: No such file or directory
```

With this commit:

```
% rustc -o nonexistent/program program.rs
error: could not write output to nonexistent/program.0.o: No such file or directory
```

This is useful when full rust command is not displayed, or when last error is followed by thousands of warnings.
@bors bors merged commit fa01251 into rust-lang:master Jan 22, 2015
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

Successfully merging this pull request may close these issues.

5 participants