Commit 604d39c6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

http connection: add error code path if we can't return a thumbnail

parent 779bbef8
......@@ -128,7 +128,7 @@
@try {
mo = [moc existingObjectWithID:[psc managedObjectIDForURIRepresentation:[NSURL URLWithString:filePath]] error:nil];
}@catch (NSException *exeption) {
// somebody gave us a malformed or stale URIRepresentation
return [[HTTPErrorResponse alloc] initWithErrorCode:404];
}
NSData *theData;
......@@ -151,6 +151,7 @@
}
}
}
return [[HTTPErrorResponse alloc] initWithErrorCode:404];
}
- (NSObject<HTTPResponse> *)_httpGETLibraryForPath:(NSString *)path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment