Tweak error message.
[dcpomatic.git] / src / lib / dcp_examiner.cc
index fe2660d48508834c38f9b6c678c5259d3d9162cd..324cef37968b4cc91ad59b49005ae65cdd67dc19 100644 (file)
@@ -39,6 +39,7 @@
 
 using std::list;
 using std::cout;
+using std::runtime_error;
 using boost::shared_ptr;
 using boost::dynamic_pointer_cast;
 
@@ -98,7 +99,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content)
                        if (!_audio_frame_rate) {
                                _audio_frame_rate = asset->sampling_rate ();
                        } else if (_audio_frame_rate.get() != asset->sampling_rate ()) {
-                               throw DCPError (_("Mismatched audio frame rates in DCP"));
+                               throw DCPError (_("Mismatched audio sample rates in DCP"));
                        }
 
                        _audio_length += (*i)->main_sound()->duration();
@@ -130,7 +131,7 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content)
                _kdm_valid = false;
                if (_encrypted && content->kdm ()) {
                        /* XXX: maybe don't use an exception for this */
-                       throw StringError (_("The KDM does not decrypt the DCP.  Perhaps it is targeted at the wrong CPL."));
+                       throw runtime_error (_("The KDM does not decrypt the DCP.  Perhaps it is targeted at the wrong CPL."));
                }
        }
 }