Use the new "printErrorAndExit" function.

This commit is contained in:
Kare Morstol
2014-11-25 19:15:21 +01:00
parent 90d10292c8
commit 63513dedf3
+1 -2
View File
@@ -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
}