Add a better error when failing to read a DCP in some cases.
authorCarl Hetherington <cth@carlh.net>
Mon, 1 Feb 2021 16:47:23 +0000 (17:47 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 1 Feb 2021 22:44:36 +0000 (23:44 +0100)
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());
                _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())));
        }
 }
 
        }
 }