Specify what error runAndPrint (bash bashcommand: String) can throw.

This commit is contained in:
Kare Morstol
2015-09-27 00:55:50 +02:00
parent e20717767b
commit a9d6197aee
+2 -2
View File
@@ -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)