summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsManager.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-10 12:19:22 +0200
committerDamiano Galassi <[email protected]>2015-10-10 21:50:26 +0200
commit656c08b79b68553b721dc07fe7856e78f4086c7c (patch)
tree9f649893ac4deea085df6ce3bec802e7fa03ba4d /macosx/HBPresetsManager.m
parentf5fb3073f913110139fb28491af0807c7dab60af (diff)
MacGui: show better error message to the user if a preset fails to import
Diffstat (limited to 'macosx/HBPresetsManager.m')
-rw-r--r--macosx/HBPresetsManager.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/HBPresetsManager.m b/macosx/HBPresetsManager.m
index a98269298..f19709044 100644
--- a/macosx/HBPresetsManager.m
+++ b/macosx/HBPresetsManager.m
@@ -70,7 +70,8 @@ NSString *HBPresetsChangedNotification = @"HBPresetsChangedNotification";
*/
- (void)loadOldPresetsFromURL:(NSURL *)url
{
- HBPreset *oldPresets = [[HBPreset alloc] initWithContentsOfURL:url];
+ NSError *error;
+ HBPreset *oldPresets = [[HBPreset alloc] initWithContentsOfURL:url error:&error];
for (HBPreset *preset in oldPresets.children)
{