From efd07ce2a8762995875e71268482af50ac2ba34a Mon Sep 17 00:00:00 2001 From: John Sundell Date: Sun, 2 Apr 2017 18:38:21 +0200 Subject: [PATCH] Make ShellOutError members public --- Sources/ShellOut.swift | 4 ++-- Tests/ShellOutTests/ShellOutTests.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/ShellOut.swift b/Sources/ShellOut.swift index 9e82f83..cdea776 100644 --- a/Sources/ShellOut.swift +++ b/Sources/ShellOut.swift @@ -23,9 +23,9 @@ import Foundation // Error type thrown by the `shellOut()` function, in case the given command failed public struct ShellOutError: Swift.Error { /// The error message that was returned through `STDERR` - let message: String + public let message: String /// Any output that was put in `STDOUT` despite the error being thrown - let output: String + public let output: String } // MARK: - Private diff --git a/Tests/ShellOutTests/ShellOutTests.swift b/Tests/ShellOutTests/ShellOutTests.swift index 778ddb7..60cbdbd 100644 --- a/Tests/ShellOutTests/ShellOutTests.swift +++ b/Tests/ShellOutTests/ShellOutTests.swift @@ -1,5 +1,5 @@ import XCTest -@testable import ShellOut +import ShellOut class ShellOutTests: XCTestCase { func testWithoutArguments() throws {