Use the new "printErrorAndExit" function.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user