]> Cypherpunks repositories - gostls13.git/commit
cmd/preprofile: clean up error handling
authorMichael Pratt <mpratt@google.com>
Mon, 4 Mar 2024 17:38:43 +0000 (12:38 -0500)
committerMichael Pratt <mpratt@google.com>
Wed, 27 Mar 2024 17:55:39 +0000 (17:55 +0000)
commita16b4bf30c476aec397a9d63ca60c7f5a5776de1
treef10ca3d6a84cdeaccf556a54eec6adb2e8a1af07
parent50dcffb384cf1693fb113de01c8a36debc6086d1
cmd/preprofile: clean up error handling

This CL adjusts error handling to be a bit more idiomatic. The
processing function returns errors, leaving main to log and exit on
error.

This CL contains no functional changes.

For #58102.

Change-Id: I9074127cc675e177d046474b7f01fbc37d0bd4c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/569335
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/preprofile/main.go