diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-20 21:45:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-20 21:45:21 +0100 |
| commit | 95ba4aff616a9e0c6ca85e7a3c86a5606afa2e45 (patch) | |
| tree | f7566be6cb57149c525fd126e838a87b933c4445 /src/lib/exceptions.cc | |
| parent | 915128d7a79dc0cb180489ba2110841d0fe17907 (diff) | |
Tidy up NetworkError.
Diffstat (limited to 'src/lib/exceptions.cc')
| -rw-r--r-- | src/lib/exceptions.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<string> d) + : runtime_error (String::compose("%1%2", s, d ? String::compose(" (%1)", *d) : "")) , _summary (s) , _detail (d) { |
