We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c25945 commit 3ef7ffdCopy full SHA for 3ef7ffd
polycode/task.go
@@ -13,6 +13,7 @@ import (
13
"net/http"
14
"os"
15
"reflect"
16
+ "runtime/debug"
17
"strings"
18
)
19
@@ -203,10 +204,14 @@ func runTask(ctx context.Context, event any) (evt *TaskCompleteEvent) {
203
204
evt = &TaskCompleteEvent{}
205
} else {
206
fmt.Printf("error %s\n", err.Error())
207
+ stackTrace := string(debug.Stack())
208
+ println(stackTrace)
209
evt = errorToTaskComplete(err)
210
}
211
212
213
214
215
evt = errorToTaskComplete(ErrUnknownError)
216
217
0 commit comments