Преглед изворни кода

print path when file not found

master
Jonathan Cobb пре 3 година
родитељ
комит
af6d3af4ba
1 измењених фајлова са 5 додато и 1 уклоњено
  1. +5
    -1
      src/main/java/jvc/model/info/JMediaInfo.java

+ 5
- 1
src/main/java/jvc/model/info/JMediaInfo.java Прегледај датотеку

@@ -82,11 +82,15 @@ public class JMediaInfo {
.setWidth(image.width());

} else {
return die("initFormat: no media tracks could be found in file");
return die("initFormat: no media tracks could be found in file: "+ref());
}
return format;
}

public String ref() {
return emptyMedia() ? "(null media)" : empty(getMedia().getRef()) ? "(null ref)" : getMedia().getRef();
}

public BigDecimal duration() {
if (emptyMedia()) return ZERO;



Loading…
Откажи
Сачувај