Custom error values are not provided
There are some cases where custom errors are initialized without providing their needed values (e.g., here).
Description
Since there are a few custom errors, one should ensure that we use them correctly and provide them with the values they need.
Expected Behavior
Error-values should not be nil.
Actual Behavior
There are quite some cases where errors are initialized with nil values.
Possible Fix
If a custom error is called, one should satisfy the requirements of the error.
Steps to Reproduce
Context
Your Environment
- Version used:
- Environment name and version (e.g. go v1.16.3 on FreeBSD 13.0-current):
- Server type and version:
- Operating System and version: