fixed people images being occasionally incorrect

This commit is contained in:
Luke Pulverenti
2013-04-14 16:47:09 -04:00
parent bc833492f0
commit 95b1bfb0de
3 changed files with 16 additions and 12 deletions

View File

@@ -293,7 +293,7 @@ namespace MediaBrowser.Api.Images
if (string.IsNullOrEmpty(imagePath))
{
throw new ResourceNotFoundException();
throw new ResourceNotFoundException(string.Format("{0} does not have an image of type {1}", item.Name, request.Type));
}
// See if we can avoid a file system lookup by looking for the file in ResolveArgs