From a9d6197aeebb27923f436e90ff7cae9c26db977f Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Sun, 27 Sep 2015 00:55:50 +0200 Subject: [PATCH] Specify what error runAndPrint (bash bashcommand: String) can throw. --- SwiftShell/Bash.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SwiftShell/Bash.swift b/SwiftShell/Bash.swift index fdcca4e..1f10808 100644 --- a/SwiftShell/Bash.swift +++ b/SwiftShell/Bash.swift @@ -39,7 +39,7 @@ extension ShellContextType { Run bash command and print output and errors. - parameter bashcommand: the bash shell command. - - throws: a ShellError if the return code is anything but 0. + - throws: a ShellError.ReturnedErrorCode if the return code is anything but 0. */ public func runAndPrint (bash bashcommand: String) throws { let task = createTask(bash: bashcommand) @@ -72,7 +72,7 @@ public func runAsync (bash bashcommand: String) -> AsyncShellTask { Run bash command and print output and errors. - parameter bashcommand: the bash shell command. -- throws: a ShellError if the return code is anything but 0. +- throws: a ShellError.ReturnedErrorCode if the return code is anything but 0. */ public func runAndPrint (bash bashcommand: String) throws { return try main.runAndPrint(bash: bashcommand)