debian-forge-composer/cmd/osbuild-worker
Michael Vogt 1d0232ffc6 osbuild-worker: rework the workerClientErrorFrom() error
The workerClientErrorFrom() was returning an `*clienterrors.Error` and
an `error` (if something with the conversation goes wrong.

But the calling code was expecting that even if an `error` is returned
the `*clienterrors.Error` is still valid. The caller would then just
log the error. As returning a valid `value` even when there is an
`error` is an unexpected pattern this commit changes the code to
always return a `*clienterrors.Error` and log any issue via the
logger.
2024-08-01 17:25:16 +02:00
..
config.go worker: support a proxy for repository mtls configuration 2024-04-17 16:17:57 +02:00
config_test.go Worker: allow configuring executor CloudWatch group 2024-03-08 13:13:44 +01:00
export_test.go osbuild-worker: improve error "reason" in case of stage failures 2024-07-09 12:12:36 +02:00
jobimpl-awsec2.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-container-resolve.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-depsolve.go osbuild-worker: rework the workerClientErrorFrom() error 2024-08-01 17:25:16 +02:00
jobimpl-depsolve_test.go osbuild-worker: rework the workerClientErrorFrom() error 2024-08-01 17:25:16 +02:00
jobimpl-file-resolve.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-koji-finalize.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-koji-init.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-osbuild.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
jobimpl-osbuild_test.go osbuild-worker: tweak error to not include a \n for a failed stage 2024-07-11 09:33:40 +02:00
jobimpl-ostree-resolve.go clienterrors: rename WorkerClientError to clienterrors.New 2024-07-31 17:04:58 +02:00
main.go worker: support a proxy for repository mtls configuration 2024-04-17 16:17:57 +02:00