Skip to content

Commit

Permalink
Catch failed content creation fix #76
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Aug 19, 2016
1 parent e51ba38 commit 84fcfbb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Jumoo.uSync.Core/Serializers/ContentSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ internal override SyncAttempt<IContent> DeserializeCore(XElement node, int paren
var item = _contentService.GetById(guid);
if (item == null)
{
item = _contentService.CreateContent(name, parentId, type);
try
{
item = _contentService.CreateContent(name, parentId, type);
}
catch(Exception ex)
{
LogHelper.Warn<ContentSerializer>("Unable to create content: {0} - {1}", () => name, () => ex.ToString());
}
}
else {
// update is different for content, we go on publish times..
Expand Down

0 comments on commit 84fcfbb

Please sign in to comment.