* better error messages (for the n00bz)

This commit is contained in:
Reinhard Pointner 2013-11-08 12:29:37 +00:00
parent ac286d44ce
commit 43eb696e7b
1 changed files with 3 additions and 2 deletions

View File

@ -707,8 +707,9 @@ public class MediaBindingBean {
private void checkMediaFile() throws RuntimeException {
// make sure file is not null, and that it is an existing file
if (mediaFile == null)
throw new RuntimeException("Invalid media file: " + mediaFile);
if (mediaFile == null) {
throw new RuntimeException("Path to media file has not been set");
}
}
private synchronized MediaInfo getMediaInfo() {