oVirt / ovirt-engine-sdk-go

The generator of Go SDK for oVirt v4.0+
Apache License 2.0
19 stars 23 forks source link

Golang best practices / error handling improvements #226

Closed ghost closed 3 years ago

ghost commented 3 years ago

Description of the Change

Changed error messages to be more in line with Golang best practices:

Benefits

Error messages are no longer silently dropped thanks to wrapping. Go developers will also be better equipped to deal with errors.

Possible Drawbacks

If users are relying on hard-coded error messages (which is a fundamentally bad idea) this change will break their implementation.

Verification Process

Ran mvn package successfully.