Add error receiver for debugging.
This commit is contained in:
parent
06f4fb70d4
commit
bf501d9e12
1 changed files with 3 additions and 1 deletions
|
@ -238,7 +238,9 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL
|
||||||
|
|
||||||
NSDictionary * dictionary = [NSDictionary dictionaryWithObjectsAndKeys:albumArtSet, @"albumArt", queueList, @"queue", topLevel, @"items", nil];
|
NSDictionary * dictionary = [NSDictionary dictionaryWithObjectsAndKeys:albumArtSet, @"albumArt", queueList, @"queue", topLevel, @"items", nil];
|
||||||
|
|
||||||
NSData * data = [NSPropertyListSerialization dataWithPropertyList:dictionary format:NSPropertyListXMLFormat_v1_0 options:0 error:0];
|
NSError * err;
|
||||||
|
|
||||||
|
NSData * data = [NSPropertyListSerialization dataWithPropertyList:dictionary format:NSPropertyListXMLFormat_v1_0 options:0 error:&err];
|
||||||
|
|
||||||
[fileHandle writeData:data];
|
[fileHandle writeData:data];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue