diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp index 5ed8690..d1ff0dd 100644 --- a/source/core/StarImageProcessing.cpp +++ b/source/core/StarImageProcessing.cpp @@ -342,9 +342,9 @@ ImageOperation imageOperationFromString(StringView string) { return NullImageOperation(); } } catch (OutOfRangeException const& e) { - return ErrorImageOperation{std::exception_ptr()}; + return ErrorImageOperation{std::current_exception()}; } catch (BadLexicalCast const& e) { - return ErrorImageOperation{std::exception_ptr()}; + return ErrorImageOperation{std::current_exception()}; } }