Recover better errors from ext4.
[dcpomatic.git] / src / lib / exceptions.cc
index 66db9fda71d0b13414515a697b8a8acced87810b..a51842b80352a663a302af009353ebed556288f3 100644 (file)
@@ -148,10 +148,11 @@ GLError::GLError (char const* message)
 }
 
 
-CopyError::CopyError (string m, optional<int> n)
-       : runtime_error (String::compose("%1%2", m, n ? String::compose(" (%1)", *n) : ""))
+CopyError::CopyError(string m, optional<int> ext4, optional<int> platform)
+       : runtime_error(String::compose("%1%2%3", m, ext4 ? String::compose(" (%1)", *ext4) : "", platform ? String::compose(" (%1)", *platform) : ""))
        , _message (m)
-       , _number (n)
+       , _ext4_number(ext4)
+       , _platform_number(platform)
 {
 
 }