Skip to content

Commit

Permalink
reverts change to LHServerConnectionManager as this is only a docs PR
Browse files Browse the repository at this point in the history
  • Loading branch information
coltmcnealy-lh committed Jan 20, 2024
1 parent 4eb6a58 commit 95f4e0b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.littlehorse.sdk.worker.internal;

import com.google.common.base.Throwables;
import io.grpc.stub.StreamObserver;
import io.littlehorse.sdk.common.LHLibUtil;
import io.littlehorse.sdk.common.config.LHConfig;
Expand Down Expand Up @@ -312,14 +313,14 @@ private VariableValue.Builder exnToVarVal(Throwable exn, WorkerContext ctx) {
private io.littlehorse.sdk.common.proto.LHTaskException exnToTaskException(LHTaskException exn) {
return io.littlehorse.sdk.common.proto.LHTaskException.newBuilder()
.setName(exn.getName())
.setMessage(exn.getMessage())
.setMessage(Throwables.getStackTraceAsString(exn))
.build();
}

private LHTaskError exnToTaskError(Throwable throwable, TaskStatus taskStatus) {
return LHTaskError.newBuilder()
.setType(LHErrorType.TASK_FAILURE)
.setType(getFailureCodeFor(taskStatus))
.setMessage(throwable.getMessage())
.build();
}

Expand Down

0 comments on commit 95f4e0b

Please sign in to comment.