diff options
-rw-r--r-- | source/core/StarImageProcessing.cpp | 6 |
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()}; } } |