diff --git a/webcam.cpp b/webcam.cpp index 3891528..a5c8fd8 100644 --- a/webcam.cpp +++ b/webcam.cpp @@ -336,7 +336,8 @@ void Webcam::init_device(void) { // note that libv4l2 (look for 'v4l-utils') provides helpers // to manage conversions - throw runtime_error("Webcam does not support the requested format. Support for more formats need to be added!"); + throw runtime_error("Webcam does not support the requested format. Support for more formats need to be added! video format is " + + std::to_string(fmt.fmt.pix.pixelformat)); } /* Note VIDIOC_S_FMT may change width and height. */