summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-09-22 17:12:28 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-22 17:12:28 +0200
commitdb6882af015dc067baed605b11d8dfa3c3dcb7e3 (patch)
treee79368a92f71ac572a09be28969dd5265eeed88d /src/lib/exceptions.cc
parent6202999dc59f90cb5a0f51f306af5b744af2301b (diff)
Throw a more useful error when the disk is full during an export (#2866).v2.17.21
Diffstat (limited to 'src/lib/exceptions.cc')
-rw-r--r--src/lib/exceptions.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index a51842b80..27496dcdc 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -173,3 +173,10 @@ VerifyError::VerifyError (string m, int n)
}
+
+DiskFullError::DiskFullError(boost::filesystem::path writing)
+ : std::runtime_error(String::compose(_("Disk full when writing %1"), writing.string()))
+{
+
+}
+