diff options
Diffstat (limited to 'source/core')
-rw-r--r-- | source/core/StarImageProcessing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()}; } } |