Improve KDM decryption error message again.
[libdcp.git] / src / exceptions.cc
index 51dd6b0104db6990da3943d430022d891a98e1c3..71771b1c1248a8d80b595de17a46eb7f04fdd946 100644 (file)
@@ -91,8 +91,8 @@ MismatchedStandardError::MismatchedStandardError ()
 
 }
 
-KDMDecryptionError::KDMDecryptionError (std::string message)
-       : runtime_error (String::compose ("Could not decrypt KDM (%1)", message))
+KDMDecryptionError::KDMDecryptionError (std::string message, int cipher_length, int modulus_dmax)
+       : runtime_error (String::compose ("Could not decrypt KDM (%1) (%2/%3)", message, cipher_length, modulus_dmax))
 {
 
 }