Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions internal/runners/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ func (r *ModelRunner) importActionMap(action map[string]interface{}, path string
if !skipChecks {
wf, err := services.NewWorkflowService(r.client).Get(value.(string))
if err != nil {
return err
return errors.New(
fmt.Sprintf("workflow for action `%s` encountered the following error: %s", action["name"], err.Error()),
)
}
if wf != nil {
return errors.New(
Expand All @@ -551,7 +553,9 @@ func (r *ModelRunner) importActionMap(action map[string]interface{}, path string
var res *services.Transformation
res, err := services.NewTransformationService(r.client).Get(value.(string))
if err != nil {
return err
return errors.New(
fmt.Sprintf("pre transformation for action `%s` encountered the following error: %s", action["name"], err.Error()),
)
}
if res != nil {
return errors.New(
Expand All @@ -577,7 +581,9 @@ func (r *ModelRunner) importActionMap(action map[string]interface{}, path string
var res *services.Transformation
res, err := services.NewTransformationService(r.client).Get(value.(string))
if err != nil {
return err
return errors.New(
fmt.Sprintf("post transformation for action `%s` encountered the following error: %s", action["name"], err.Error()),
)
}
if res != nil {
return errors.New(
Expand All @@ -597,7 +603,6 @@ func (r *ModelRunner) importActionMap(action map[string]interface{}, path string
}
delete(action, "postWorkflowjstFilename")
action["postWorkflowJst"] = res.Id

}

return nil
Expand Down
Loading