Skip to content

NSTask - capture output from commands #348

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 3 commits into from
May 6, 2016

Conversation

Bouke
Copy link
Contributor

@Bouke Bouke commented May 5, 2016

No description provided.

public var standardInput: AnyObject? {
willSet {
guard newValue is NSPipe || newValue is NSFileHandle else {
abort()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change this (and following) to preconditionFailure("message") instead, so a caller knows what they did wrong without digging into the source code.

@parkera
Copy link
Contributor

parkera commented May 5, 2016

@swift-ci please test

@Bouke
Copy link
Contributor Author

Bouke commented May 5, 2016

Ah yes, that's way better. I've updated the PR.

@parkera
Copy link
Contributor

parkera commented May 5, 2016

Looks good, thanks!

@parkera
Copy link
Contributor

parkera commented May 5, 2016

@swift-ci please test

@parkera parkera merged commit afe26ff into swiftlang:master May 6, 2016
@Bouke Bouke deleted the nstask-capture-output branch May 8, 2016 07:44
atrick pushed a commit to atrick/swift-corelibs-foundation that referenced this pull request Jan 12, 2021
Currently `FileSystemError` doesn't have an associated path, which makes diagnosing errors harder. This is going to be fixed in TSC and SwiftPM, but this is a breaking change. Usage of `FileSystemError` is updated in the SourceKit-LSP codebase accordingly.
kateinoigakukun pushed a commit to kateinoigakukun/swift-corelibs-foundation that referenced this pull request Oct 11, 2023
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.

2 participants