diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-12-29 23:38:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-05 20:08:52 +0100 |
| commit | 8c867a69d4a93cf81b89a612764eb0be902b7407 (patch) | |
| tree | 32d6094dbb48322333799cd7451d7ae660a3ac2d /src/lib/exceptions.cc | |
| parent | ef962e75de1ba175579080d6ac1c440b2edd5fa0 (diff) | |
Recover better errors from ext4.
Diffstat (limited to 'src/lib/exceptions.cc')
| -rw-r--r-- | src/lib/exceptions.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc index 66db9fda7..a51842b80 100644 --- a/src/lib/exceptions.cc +++ b/src/lib/exceptions.cc @@ -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) { } |
