Skip to content

Commit 77ec9a2

Browse files
committed
Add cause to exception being thrown in JavaCV device
1 parent d50521d commit 77ec9a2

File tree

1 file changed

+1
-1
lines changed
  • webcam-capture-drivers/driver-javacv/src/main/java/com/github/sarxos/webcam/ds/javacv

1 file changed

+1
-1
lines changed

webcam-capture-drivers/driver-javacv/src/main/java/com/github/sarxos/webcam/ds/javacv/JavaCvDevice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public BufferedImage getImage() {
8484
try {
8585
frame = grabber.grab();
8686
} catch (Exception e) {
87-
throw new WebcamException("OpenCV cannot grab image frame");
87+
throw new WebcamException("OpenCV cannot grab image frame", e);
8888
}
8989
if (frame == null) {
9090
throw new WebcamException("OpenCV image frame is null");

0 commit comments

Comments
 (0)