Don't terminate if a non-DCP directory is given to Open.
[dcpomatic.git] / src / tools / dcpomatic_player.cc
index 9511990aefca6e1483747bddc87164e4abc46e6d..3495c78d411d82166ab04dda2fb3410b7f50150c 100644 (file)
@@ -363,6 +363,8 @@ public:
 #endif
                } catch (dcp::DCPReadError& e) {
                        error_dialog (this, wxString::Format(_("Could not load a DCP from %s"), std_to_wx(dir.string())), std_to_wx(e.what()));
+               } catch (DCPError& e) {
+                       error_dialog (this, wxString::Format(_("Could not load a DCP from %s"), std_to_wx(dir.string())), std_to_wx(e.what()));
                }
        }