From 57f1d2d145214560a474df6a4df84a00da13d7ff Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Tue, 2 Sep 2014 18:18:00 +0200 Subject: [PATCH] Clarify error message and exit code. --- SwiftShell/Command.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SwiftShell/Command.swift b/SwiftShell/Command.swift index 29aa52e..6d33442 100644 --- a/SwiftShell/Command.swift +++ b/SwiftShell/Command.swift @@ -36,8 +36,8 @@ public func |> (lhs: ReadableStreamType, rhs: @autoclosure () -> ReadableStreamT _nextinput_ = lhs let result = rhs() if _nextinput_ != nil { - standarderror.write("The statement 'ReadableStreamType |> ReadableStreamType' doesn't make any sense.") - exit(1) + standarderror.write("SwiftShell: The statement 'ReadableStreamType |> ReadableStreamType' is invalid.") + exit(EXIT_FAILURE) } return result }