Clarified exceptions when using NodeById and MediaById and passing empty strings, e.g. if your source came from @Parameter

This commit is contained in:
agrath@gmail.com
2011-06-12 12:17:00 -02:00
parent 23145b9981
commit 1f6cc18ba4
2 changed files with 5 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ namespace umbraco.MacroEngines.Library
{
return MediaById(mediaId);
}
throw new ArgumentException("Cannot get MediaById without an id");
return null;
}
public DynamicNode MediaById(object Id)