projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49b655d
)
Add a better error when failing to read a DCP in some cases.
author
Carl Hetherington
<cth@carlh.net>
Mon, 1 Feb 2021 16:47:23 +0000
(17:47 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 1 Feb 2021 22:44:36 +0000
(23:44 +0100)
src/wx/gl_video_view.cc
patch
|
blob
|
history
diff --git
a/src/wx/gl_video_view.cc
b/src/wx/gl_video_view.cc
index f24a78f1cbee42cc5217aa38f12cd88a064e8cb0..076cb49ecedf2ec2a0fccdc13d0cb202c8504c7a 100644
(file)
--- 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())));
}
}