temporary fix

This commit is contained in:
Kae 2024-05-01 03:29:05 +10:00 committed by GitHub
parent 27e0f6bd71
commit 6bcc7224e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -342,9 +342,11 @@ ImageOperation imageOperationFromString(StringView string) {
return NullImageOperation();
}
} catch (OutOfRangeException const& e) {
return ErrorImageOperation{std::current_exception()};
return ErrorImageOperation{e.what()};
} catch (BadLexicalCast const& e) {
return ErrorImageOperation{std::current_exception()};
return ErrorImageOperation{e.what()};
} catch (StarException const& e) {
return ErrorImageOperation{e.what()};
}
}