diff --git a/.github/workflows/ci-core.yml b/.github/workflows/ci-core.yml index 93db23ab46f..7ab16825539 100644 --- a/.github/workflows/ci-core.yml +++ b/.github/workflows/ci-core.yml @@ -88,9 +88,15 @@ jobs: only-new-issues: ${{ github.event.schedule == '' }} # show only new issues, unless it's a scheduled run allow-extra-out-format-args: true args: --out-format checkstyle:golangci-lint-report.xml + - name: Install bat + uses: awalsh128/cache-apt-pkgs-action@1850ee53f6e706525805321a3f2f863dcf73c962 # v1.3.0 + with: + packages: bat + if: always() - name: Print lint report artifact if: always() - run: test -f golangci-lint-report.xml && cat golangci-lint-report.xml || true + shell: bash + run: test -f golangci-lint-report.xml && bat -pP golangci-lint-report.xml || true - name: Store lint report artifact if: always() uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 diff --git a/core/main.go b/core/main.go index 4ff013d9c96..b7a2ef93297 100644 --- a/core/main.go +++ b/core/main.go @@ -28,10 +28,7 @@ func init() { func Main() (code int) { recovery.ReportPanics(func() { app := cmd.NewApp(newProductionClient()) - if err := app.Run(os.Args); err != nil { - fmt.Fprintf(os.Stderr, "Error running app: %v\n", err) - code = 1 - } + app.Run(os.Args) }) return }