Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarImageProcessing.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-05-01 03:29:05 +1000
committerGitHub <noreply@github.com>2024-05-01 03:29:05 +1000
commit6bcc7224e8612ce264de0dc63d42afd4c7bb3476 (patch)
tree4e7e8740412e8d2fff112bef3cebd0e6daed4518 /source/core/StarImageProcessing.cpp
parent27e0f6bd713285c0b2aa0e358a17fe84bbbfbfdf (diff)
temporary fix
Diffstat (limited to 'source/core/StarImageProcessing.cpp')
-rw-r--r--source/core/StarImageProcessing.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/core/StarImageProcessing.cpp b/source/core/StarImageProcessing.cpp
index d1ff0dd..aa29d2a 100644
--- a/source/core/StarImageProcessing.cpp
+++ b/source/core/StarImageProcessing.cpp
@@ -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()};
}
}