Skip to content

Commit

Permalink
[Improve][Connector-V2] Improve doris error msg (#7343)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hisoka-X authored Aug 8, 2024
1 parent a18fca8 commit 16950a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.seatunnel.shade.com.fasterxml.jackson.core.type.TypeReference;

import org.apache.seatunnel.api.table.catalog.TablePath;
import org.apache.seatunnel.common.utils.ExceptionUtils;
import org.apache.seatunnel.common.utils.JsonUtils;
import org.apache.seatunnel.connectors.doris.config.DorisConfig;
import org.apache.seatunnel.connectors.doris.exception.DorisConnectorErrorCode;
Expand Down Expand Up @@ -196,7 +197,7 @@ public String getLoadFailedMsg() {
try {
errorMessage = handlePreCommitResponse(pendingLoadFuture.get()).getMessage();
} catch (Exception e) {
errorMessage = e.getMessage();
errorMessage = ExceptionUtils.getMessage(e);
}
recordStream.setErrorMessageByStreamLoad(errorMessage);
return errorMessage;
Expand Down

0 comments on commit 16950a6

Please sign in to comment.