* better error messages (for the n00bz)
This commit is contained in:
parent
ac286d44ce
commit
43eb696e7b
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue