Skip to content

Commit

Permalink
fixed error string
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Apr 9, 2020
1 parent 62237d0 commit a8d135e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion frameworks/cairosvg/NSError+GError.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ - (id) initWithGError:(GError *)gerror withURL:(NSURL * _Nonnull)url {
NSString * message = [[NSString alloc] initWithUTF8String:gerror->message];
NSDictionary * underlyingUserInfo = [[NSDictionary alloc] initWithObjectsAndKeys: message, NSLocalizedDescriptionKey, nil];
NSError * underlyingError = [[NSError alloc] initWithDomain:@"GErrorDomain" code:gerror->code userInfo:underlyingUserInfo];
NSDictionary * newUserInfo = [[NSDictionary alloc] initWithObjectsAndKeys:underlyingError, NSUnderlyingErrorKey, url.path, NSFilePathErrorKey, nil];
NSDictionary * newUserInfo = [[NSDictionary alloc] initWithObjectsAndKeys:underlyingError, NSUnderlyingErrorKey, url.path, NSFilePathErrorKey, message, NSLocalizedDescriptionKey, nil];
self = [self initWithDomain:@"CairoErrorDomain" code:1100 userInfo:newUserInfo];
return self;
}
Expand Down
1 change: 0 additions & 1 deletion frameworks/speculid/Controllers/Service.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public final class Service: NSObject, ServiceProtocol {
do {
builtImageHandle = try ImageHandleBuilder.shared.imageHandle(fromFile: imageFile)
} catch let error as NSError {
dump(error)
callback(error)
return
}
Expand Down

0 comments on commit a8d135e

Please sign in to comment.