Clarify error message and exit code.

This commit is contained in:
Kare Morstol
2014-09-02 18:18:00 +02:00
parent ac7931d8b5
commit 57f1d2d145
+2 -2
View File
@@ -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
}