Skip to content

hook: Standardize errors creation

Pavlo Strokov requested to merge ps-hook-fix into master

Replace usage of status.Errorf() with helper.Err() to return proper error code with error unwrapping. Replace old %v with new %w for proper error wrapping. Replace fmt.Errorf() with errors.New() if used without a reason (no parameters to inject into error text). Check the error to convert it to the corresponding error code.

Part of: #4471 (closed)

Merge request reports