From bf501d9e12205ea5b2f5b02ba975b99d227f0ab6 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 17 Sep 2017 20:03:30 -0700 Subject: [PATCH] Add error receiver for debugging. --- Playlist/PlaylistLoader.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Playlist/PlaylistLoader.m b/Playlist/PlaylistLoader.m index 326b97c74..8da5afa0f 100755 --- a/Playlist/PlaylistLoader.m +++ b/Playlist/PlaylistLoader.m @@ -238,7 +238,9 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL 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];