oops: fix lexical & oob exceptions in StarImageProcessing.cpp
This commit is contained in:
parent
2a751e2e37
commit
f7b7a2d4d5
@ -342,9 +342,9 @@ ImageOperation imageOperationFromString(StringView string) {
|
|||||||
return NullImageOperation();
|
return NullImageOperation();
|
||||||
}
|
}
|
||||||
} catch (OutOfRangeException const& e) {
|
} catch (OutOfRangeException const& e) {
|
||||||
return ErrorImageOperation{std::exception_ptr()};
|
return ErrorImageOperation{std::current_exception()};
|
||||||
} catch (BadLexicalCast const& e) {
|
} catch (BadLexicalCast const& e) {
|
||||||
return ErrorImageOperation{std::exception_ptr()};
|
return ErrorImageOperation{std::current_exception()};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user