diff --git a/internal/storeLink/openi.go b/internal/storeLink/openi.go index 1dcec340..77f2e563 100644 --- a/internal/storeLink/openi.go +++ b/internal/storeLink/openi.go @@ -5,6 +5,7 @@ import ( "context" "encoding/json" "errors" + "fmt" openIcom "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/common" "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/schedulers/option" "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/collector" @@ -186,7 +187,7 @@ func (o *OpenI) SubmitTask(ctx context.Context, imageId string, cmd string, envs var bootFile string codePaths := strings.Split(algorithmId, FORWARD_SLASH) if len(codePaths) != 3 { - return nil, errors.New("algorithmId format is incorrect") + return nil, fmt.Errorf("algorithmId %s format is incorrect", algorithmId) } specs := strings.Split(resourceId, FORWARD_SLASH)