From: Carl Hetherington Date: Mon, 1 Feb 2021 16:47:23 +0000 (+0100) Subject: Add a better error when failing to read a DCP in some cases. X-Git-Tag: v2.15.124~4 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=5ba3832a034eec21b491215f7fb2d0fff55ee7b2 Add a better error when failing to read a DCP in some cases. --- 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()))); } }