summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-02-01 17:47:23 +0100
committerCarl Hetherington <cth@carlh.net>2021-02-01 23:44:36 +0100
commit5ba3832a034eec21b491215f7fb2d0fff55ee7b2 (patch)
treeac09b9c29b61d83f593f69818890a2bb204c228d /src
parent49b655d3e1937018c46ed7f6a62e1157b247e426 (diff)
Add a better error when failing to read a DCP in some cases.
Diffstat (limited to 'src')
-rw-r--r--src/wx/gl_video_view.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc
index f24a78f1c..076cb49ec 100644
--- a/src/wx/gl_video_view.cc
+++ b/src/wx/gl_video_view.cc
@@ -106,6 +106,8 @@ GLVideoView::check_for_butler_errors ()
_viewer->butler()->rethrow ();
} catch (DecodeError& e) {
error_dialog (get(), e.what());
+ } catch (dcp::ReadError& e) {
+ error_dialog (get(), wxString::Format(_("Could not read DCP: %s"), std_to_wx(e.what())));
}
}