Skip to content

Improve swift-run failure mode #3685

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
Aug 24, 2021

Conversation

keith
Copy link
Member

@keith keith commented Aug 23, 2021

In the case that you used swift run, and your executable failed to
build, previously you would see this output, at the bottom of a
potentially long list of warnings:

error: fatalError

In some cases, especially with lots of build output, this makes it look
like your command ran, but your program failed, not the build.

This silences that message, since the point of that error is that some
other diagnostics should have been printed anyways.

In the case that you used `swift run`, and your executable failed to
build, previously you would see this output, at the bottom of a
potentially long list of warnings:

```
error: fatalError
```

In some cases, especially with lots of build output, this makes it look
like your command ran, but your program failed, not the build.

This silences that message, since the point of that error is that some
other diagnostics should have been printed anyways.
@neonichu
Copy link
Contributor

@swift-ci please smoke test

@keith
Copy link
Member Author

keith commented Aug 23, 2021

I don't believe the failure here is related

@tomerd
Copy link
Contributor

tomerd commented Aug 23, 2021

@swift-ci please smoke test

@neonichu
Copy link
Contributor

@swift-ci please smoke test

@neonichu neonichu merged commit 9625021 into swiftlang:main Aug 24, 2021
@keith
Copy link
Member Author

keith commented Aug 24, 2021

Thanks!

@keith keith deleted the ks/improve-swift-run-failure-mode branch August 24, 2021 16:40
@tomerd
Copy link
Contributor

tomerd commented Aug 24, 2021

thank you @keith

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.

4 participants