Skip to content

commit: Standardize errors creation

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

The old %v format replaced with the error wrapping %w format. It will allow to extract error from the text context and verify error equality more strict. The status.Errorf() calls replaced with function calls from helper package corresponding to the used status code. The checks to define if an error is a status package entity are not needed if functions from the helper package are used. They detect status entities internally and prevent double-wrapping. The prefixes same as gRPC method names removed from the error messages as they are redundant.

Part of: #4471 (closed)

Merge request reports