projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
swaroop: take ownership of config file if we're run as root.
[dcpomatic.git]
/
src
/
lib
/
exceptions.cc
diff --git
a/src/lib/exceptions.cc
b/src/lib/exceptions.cc
index 4e1e1ade3b8e5a1b9da47aa7cb1523ac67472b56..481d2e89dd668fd82b7e78c5651a0df1a2482e84 100644
(file)
--- a/
src/lib/exceptions.cc
+++ b/
src/lib/exceptions.cc
@@
-52,7
+52,7
@@
WriteFileError::WriteFileError (boost::filesystem::path f, int e)
}
MissingSettingError::MissingSettingError (string s)
}
MissingSettingError::MissingSettingError (string s)
- : SettingError (s, String::compose (_("
m
issing required setting %1"), s))
+ : SettingError (s, String::compose (_("
M
issing required setting %1"), s))
{
}
{
}
@@
-89,4
+89,14
@@
ProgrammingError::ProgrammingError (string file, int line, string message)
KDMAsContentError::KDMAsContentError ()
: runtime_error (_("This file is a KDM. KDMs should be added to DCP content by right-clicking the content and choosing \"Add KDM\"."))
KDMAsContentError::KDMAsContentError ()
: runtime_error (_("This file is a KDM. KDMs should be added to DCP content by right-clicking the content and choosing \"Add KDM\"."))
-{}
+{
+
+}
+
+KDMError::KDMError (string s, string d)
+ : runtime_error (String::compose ("%1 (%2)", s, d))
+ , _summary (s)
+ , _detail (d)
+{
+
+}