From 2795ab2e05fcd27a56ddb08ecbbc6af5c3bf983a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 10 Sep 2025 20:44:52 +0200 Subject: Pass disk full / too many open files errors up to DoM. --- src/util.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 3a962520..52cb135d 100644 --- a/src/util.h +++ b/src/util.h @@ -42,6 +42,7 @@ #include "array_data.h" +#include "exceptions.h" #include "local_time.h" #include "warnings.h" LIBDCP_DISABLE_WARNINGS @@ -173,6 +174,16 @@ add_to_container(To& container, From source) } +void maybe_throw_from_asdcplib(Kumu::Result_t result, boost::filesystem::path path); + + +template +void throw_from_asdcplib(Kumu::Result_t result, boost::filesystem::path path, T const& general) +{ + maybe_throw_from_asdcplib(result, path); + boost::throw_exception(general); +} + } -- cgit v1.2.3