Skip to content

CLI: Error positions not reported at all when a step has a name #1175

@josephjclark

Description

@josephjclark

If I run this workflow.json without state:

{
  "workflow": {
    "steps": [
      {
        "adaptors": ["@openfn/language-common@2.1.1"],
        "expression": "./event-temp.js"
      }
    ]
  }
}

I get a reasonable error message:

Image

if I run the same as a workflow.yaml:

id: wf2-omrs-dhis2
steps:
  - id: event-temp
    name: Event Mappings
    adaptor: '@openfn/language-common@2.1.1'
    expression: ./event-temp.js

No positions are reported

Image

Note that the workflow.json and workflow.yaml are not the same. This might be an error in the CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions