Fix confusing error on trying to load a DoM project into the player (#1948).
[dcpomatic.git] / src / wx / content_panel.cc
index 7789e7b786b4fc8366b3d10f32d24d21bf1406a9..d1859b894e1c34a8f391ed7dc0c19b9daedf2ade 100644 (file)
@@ -511,6 +511,14 @@ ContentPanel::add_dcp_clicked ()
 
        try {
                _film->examine_and_add_content (make_shared<DCPContent>(path));
+       } catch (ProjectFolderError &) {
+               error_dialog (
+                       _parent,
+                       _(
+                               "This looks like a DCP-o-matic project folder, which cannot be added to a different project.  "
+                               "Choose the DCP directory inside the DCP-o-matic project folder if that's what you want to import."
+                        )
+                       );
        } catch (exception& e) {
                error_dialog (_parent, e.what());
        }