From 4a79e6ecbc50cac50696791274ae3402b3daa205 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 10 Sep 2015 09:52:53 +0100 Subject: Slightly better error message. --- src/mono_picture_frame.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mono_picture_frame.cc b/src/mono_picture_frame.cc index 7a863463..0a7d7a11 100644 --- a/src/mono_picture_frame.cc +++ b/src/mono_picture_frame.cc @@ -28,6 +28,7 @@ #include "colour_conversion.h" #include "KM_fileio.h" #include "AS_DCP.h" +#include "compose.hpp" #include #define DCI_GAMMA 2.6 @@ -72,7 +73,7 @@ MonoPictureFrame::MonoPictureFrame (boost::filesystem::path path, int n, ASDCP:: _buffer = new ASDCP::JP2K::FrameBuffer (4 * Kumu::Megabyte); if (ASDCP_FAILURE (reader.ReadFrame (n, *_buffer, c))) { - boost::throw_exception (DCPReadError ("could not read video frame")); + boost::throw_exception (DCPReadError (String::compose ("could not read video frame %1 of %2", n, path.string()))); } } -- cgit v1.2.3