Skip to content
Snippets Groups Projects
Commit fd51dff8 authored by Jorge Canizales's avatar Jorge Canizales
Browse files

Clarify invalid-argument message for already-started writers

parent 238ad781
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,8 @@ ...@@ -51,7 +51,8 @@
return nil; return nil;
} }
if (writer.state != GRXWriterStateNotStarted) { 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])) { if ((self = [super init])) {
_writer = writer; _writer = writer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment