Skip to content

Commit

Permalink
Add cause to exception being thrown in JavaCV device
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jul 13, 2015
1 parent d50521d commit 77ec9a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public BufferedImage getImage() {
try {
frame = grabber.grab();
} catch (Exception e) {
throw new WebcamException("OpenCV cannot grab image frame");
throw new WebcamException("OpenCV cannot grab image frame", e);
}
if (frame == null) {
throw new WebcamException("OpenCV image frame is null");
Expand Down

0 comments on commit 77ec9a2

Please sign in to comment.