Skip to content

Primary error message is not shown in error header, instead says error in 'error' step #124

@justinmchase

Description

@justinmchase

Feature Request

When I report an error like this in one of my steps:

stage ("Submodule Check") {
  steps {
    script {
      error "Submodules are OK for branches but cannot be merged into main"
    }
  }
}

This plugin does not report that error cleanly in the check. I expect it to show the message I reported more prominently but instead it shows information about the error step itself.

For example right in the Pull Request instead of showing that error message it simply says error in 'error' step:

Screen Shot 2021-09-04 at 8 10 00 AM

Other github status checkers will show the actual error message in this part of the UI instead.

Additionaly when going to the error details it has the same message prominently in a header as well as some redundant information about an Error in the error step.

(red for bad, green for good)
Screen Shot 2021-09-04 at 8 11 19 AM

I feel like in the case of reporting an error via the error() step / function, the information about that step should be omitted and the error message itself should be what is reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions