Clarify invalid-argument message for already-started writers

pull/2861/head
Jorge Canizales 9 years ago
parent 238ad7819f
commit fd51dff8b8
  1. 3
      src/objective-c/RxLibrary/GRXForwardingWriter.m

@ -51,7 +51,8 @@
return nil;
}
if (writer.state != GRXWriterStateNotStarted) {
[NSException raise:NSInvalidArgumentException format:@"writer can't be started."];
[NSException raise:NSInvalidArgumentException
format:@"The writer argument must not have already started."];
}
if ((self = [super init])) {
_writer = writer;

Loading…
Cancel
Save