From 8c867a69d4a93cf81b89a612764eb0be902b7407 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 29 Dec 2022 23:38:39 +0100 Subject: Recover better errors from ext4. --- src/lib/exceptions.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib/exceptions.cc') 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 n) - : runtime_error (String::compose("%1%2", m, n ? String::compose(" (%1)", *n) : "")) +CopyError::CopyError(string m, optional ext4, optional 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) { } -- cgit v1.2.3