From 63513dedf3ee8a95a04e5f3e956b6ff227764f4c Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Tue, 25 Nov 2014 19:15:21 +0100 Subject: [PATCH] Use the new "printErrorAndExit" function. --- SwiftShell/Command.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SwiftShell/Command.swift b/SwiftShell/Command.swift index 4d80cab..a13fc6c 100644 --- a/SwiftShell/Command.swift +++ b/SwiftShell/Command.swift @@ -34,8 +34,7 @@ public func |> (lhs: ReadableStreamType, rhs: @autoclosure () -> ReadableStreamT _nextinput_ = lhs let result = rhs() if _nextinput_ != nil { - standarderror.write("SwiftShell: The statement 'ReadableStreamType |> ReadableStreamType' is invalid.") - exit(EXIT_FAILURE) + printErrorAndExit("SwiftShell: The statement 'ReadableStreamType |> ReadableStreamType' is invalid.") } return result }