oops: fix lexical & oob exceptions in StarImageProcessing.cpp

This commit is contained in:
Kae 2024-04-29 04:14:52 +10:00 committed by GitHub
parent 2a751e2e37
commit f7b7a2d4d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()};
}
}