add logging

This commit is contained in:
Luke Pulverenti 2016-06-26 16:38:50 -04:00
parent dc15f93005
commit 17e416a0fd

View File

@ -108,6 +108,11 @@ namespace MediaBrowser.Api.UserLibrary
throw new InvalidOperationException("GetItemsToSerialize returned null");
}
if (result.Items == null)
{
throw new InvalidOperationException("GetItemsToSerialize result.Items returned null");
}
var dtoOptions = GetDtoOptions(request);
var dtoList = await _dtoService.GetBaseItemDtos(result.Items, dtoOptions, user).ConfigureAwait(false);