From 6bcc7224e8612ce264de0dc63d42afd4c7bb3476 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 1 May 2024 03:29:05 +1000 Subject: [PATCH] temporary fix --- source/core/StarImageProcessing.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp index d1ff0dd..aa29d2a 100644 --- a/source/core/StarImageProcessing.cpp +++ b/source/core/StarImageProcessing.cpp @@ -342,9 +342,11 @@ ImageOperation imageOperationFromString(StringView string) { return NullImageOperation(); } } catch (OutOfRangeException const& e) { - return ErrorImageOperation{std::current_exception()}; + return ErrorImageOperation{e.what()}; } catch (BadLexicalCast const& e) { - return ErrorImageOperation{std::current_exception()}; + return ErrorImageOperation{e.what()}; + } catch (StarException const& e) { + return ErrorImageOperation{e.what()}; } }