summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-10 09:52:53 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-10 09:52:53 +0100
commit4a79e6ecbc50cac50696791274ae3402b3daa205 (patch)
tree8320b451bb96a6a3940592c60dfcde41577eabf5 /src
parent355a73bf3179a8ed479d9ff20824d450ca12b09b (diff)
Slightly better error message.
Diffstat (limited to 'src')
-rw-r--r--src/mono_picture_frame.cc3
1 files changed, 2 insertions, 1 deletions
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 <openjpeg.h>
#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())));
}
}