As noted in other issues the error() step is not intended to print messages. But there are some use cases where this becomes very helpful. Eg. provides information directly in the blue ocean log; the error step does this sporadic only.

      Does it make sense to add another step with fails the build but also prints to the log?

          [JENKINS-58597] Additional Step error with message

          ethorsa created issue -
          ethorsa made changes -
          Link New: This issue is related to JENKINS-39827 [ JENKINS-39827 ]
          ethorsa made changes -
          Link New: This issue is related to JENKINS-39337 [ JENKINS-39337 ]

            Unassigned Unassigned
            ethorsa ethorsa
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: