X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fexceptions.cc;h=66db9fda71d0b13414515a697b8a8acced87810b;hb=7b4d4a6c2bc3f5a0f9216fdb8d96bbe952aa49ee;hp=7e98a2b57c4fd95c4ec5cd038a0f4f9bc9869851;hpb=89547a4110fcee9081a22ae206bd4367e736688c;p=dcpomatic.git diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc index 7e98a2b57..66db9fda7 100644 --- a/src/lib/exceptions.cc +++ b/src/lib/exceptions.cc @@ -116,8 +116,8 @@ KDMAsContentError::KDMAsContentError () } -NetworkError::NetworkError (string s, string d) - : runtime_error (String::compose("%1 (%2)", s, d)) +NetworkError::NetworkError (string s, optional d) + : runtime_error (String::compose("%1%2", s, d ? String::compose(" (%1)", *d) : "")) , _summary (s) , _detail (d) {