Update StarImageProcessing.cpp

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

View File

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