diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-29 04:14:52 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 04:14:52 +1000 |
commit | f7b7a2d4d54d71e005274297a790f7ec42bd6c1f (patch) | |
tree | 517c7a70684ad9a2c7848e6009b72f1d7e5ffbcc /source/core/StarImageProcessing.cpp | |
parent | 2a751e2e37c29c813739432485cf5622b15d1297 (diff) |
oops: fix lexical & oob exceptions in StarImageProcessing.cpp
Diffstat (limited to 'source/core/StarImageProcessing.cpp')
-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()}; } } |