~jose-exposito89/ubuntuone-ios-files/1163620

« back to all changes in this revision

Viewing changes to Files/U1FilesClient.m

  • Committer: Tarmac
  • Author(s): mike.mccracken@canonical.com
  • Date: 2013-04-11 19:26:33 UTC
  • mfrom: (86.3.1 lotsa-error-logging)
  • Revision ID: tarmac-20130411192633-lt9juss26sd26810
- Add more error logging to aid in crash debugging

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
                        newNode.kind = @"file";
398
398
                        newNode.contentPath = [folderNode.contentPath stringByAppendingPathComponent:resourceName];
399
399
                        newNode.parent = folderNode;
400
 
                        [context save:NULL];
 
400
                        NSError *err;
 
401
                        if(![context save:&err]){
 
402
                                CLS_LOG(@"Error saving new file node for upload to main context: %@", err);
 
403
                        }
401
404
                }];
402
405
                node = (id)[self.dataRepository nodeWithResourcePath:resourcePath];
403
406
        }