diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-08 10:05:49 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-08 10:05:49 +0000 |
| commit | 83591a4390db550a7d1495b9699c62315e2d7710 (patch) | |
| tree | 29c93f38853ae2d99c7bca8c7b52d2c294881c0e /src/sound_frame.cc | |
| parent | 3a148fab61d2b23379589a4f0f256c21950742b8 (diff) | |
Throw better file errors (with numbers).
Diffstat (limited to 'src/sound_frame.cc')
| -rw-r--r-- | src/sound_frame.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound_frame.cc b/src/sound_frame.cc index 77f4c7a8..6bc52c1a 100644 --- a/src/sound_frame.cc +++ b/src/sound_frame.cc @@ -28,8 +28,9 @@ using namespace libdcp; SoundFrame::SoundFrame (string mxf_path, int n, ASDCP::AESDecContext* c) { ASDCP::PCM::MXFReader reader; - if (ASDCP_FAILURE (reader.OpenRead (mxf_path.c_str()))) { - boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path)); + Kumu::Result_t r = reader.OpenRead (mxf_path.c_str()); + if (ASDCP_FAILURE (r)) { + boost::throw_exception (FileError ("could not open MXF file for reading", mxf_path, r)); } /* XXX: unfortunate guesswork on this buffer size */ |
