Add a better error when failing to read a DCP in some cases.
[dcpomatic.git] / src / wx / gl_video_view.cc
index f24a78f1cbee42cc5217aa38f12cd88a064e8cb0..076cb49ecedf2ec2a0fccdc13d0cb202c8504c7a 100644 (file)
@@ -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())));
        }
 }