mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fixes panic, still dk why result and err are nil. need to fix fucked up code
This commit is contained in:
@@ -2,6 +2,7 @@ package runner
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"sync"
|
||||
@@ -96,6 +97,9 @@ func (rnr *Runner) RunTask(ctx context.Context, cfg *task.Config) (drivers.RunRe
|
||||
}
|
||||
|
||||
resp := <-treq.Response
|
||||
if resp.Result == nil && resp.Err == nil {
|
||||
resp.Err = errors.New("error running task with unknown error")
|
||||
}
|
||||
return resp.Result, resp.Err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user