diff options
author | Jorge Canizales <jcanizales@google.com> | 2015-08-08 16:12:52 -0700 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2015-08-08 16:12:52 -0700 |
commit | fd51dff8b80ac7a202265837218b1718d27f1b12 (patch) | |
tree | 2ca5d9bcde16058aca7e601ac7a40b033eb209a1 /src | |
parent | 238ad7819ffcd650692baff57d15b577503fd448 (diff) |
Clarify invalid-argument message for already-started writers
Diffstat (limited to 'src')
-rw-r--r-- | src/objective-c/RxLibrary/GRXForwardingWriter.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/objective-c/RxLibrary/GRXForwardingWriter.m b/src/objective-c/RxLibrary/GRXForwardingWriter.m index cf8be8c557..a72be9ace2 100644 --- a/src/objective-c/RxLibrary/GRXForwardingWriter.m +++ b/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; |