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 }