X Tutup
Skip to content

chore: improve error messaging in resource execution#7691

Merged
olblak merged 3 commits intoupdatecli:mainfrom
olblak:fix/resource_output
Feb 10, 2026
Merged

chore: improve error messaging in resource execution#7691
olblak merged 3 commits intoupdatecli:mainfrom
olblak:fix/resource_output

Conversation

@olblak
Copy link
Member

@olblak olblak commented Feb 9, 2026

Minor improvement when displaying error message

Test

Test manually

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

Tradeoff

Potential improvement

Signed-off-by: Olblak <me@olblak.com>
@olblak olblak added enhancement New feature or request core All things related to Updatecli core engine labels Feb 9, 2026
@olblak olblak requested a review from Copilot February 9, 2026 18:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves how pipeline execution errors are presented to users by enhancing pipeline-level error output formatting and reducing redundant logging from individual resource runs.

Changes:

  • Update the exported pipeline error (ErrRunTargets) message to refer to pipeline execution.
  • Remove direct logrus.Errorf logging from Source.Run() on failure paths (relying on pipeline-level reporting instead).
  • Enhance pipeline error logs to include formatted/indented error details and a summary header when errors are present.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
pkg/core/pipeline/targets.go Updates the shared exported error message used when the pipeline run encounters failures.
pkg/core/pipeline/source/main.go Removes error logging on failure paths to avoid duplicate/noisy logs (pipeline handles reporting).
pkg/core/pipeline/main.go Improves error display formatting during execution and adds a clearer end-of-run error summary section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@olblak olblak enabled auto-merge (squash) February 9, 2026 19:38
@olblak olblak merged commit d4f4123 into updatecli:main Feb 10, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core All things related to Updatecli core engine enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup