Merge pull request #22056 from akka/ktoso-typo-1

=str fix typo in GraphStage port validations
This commit is contained in:
Konrad `ktoso` Malawski 2016-12-22 13:42:40 +01:00 committed by GitHub
commit b1e146c836

View file

@ -455,7 +455,7 @@ abstract class GraphStageLogic private[stream] (val inCount: Int, val outCount:
// Detailed error information should not add overhead to the hot path
ReactiveStreamsCompliance.requireNonNullElement(elem)
require(!isClosed(out), s"Cannot pull closed port ($out)")
require(!isClosed(out), s"Cannot push closed port ($out)")
require(isAvailable(out), s"Cannot push port ($out) twice")
// No error, just InClosed caused the actual pull to be ignored, but the status flag still needs to be flipped