It works! The errors messages are on the screenshot below:
Currently, I've implemented this only for the Repository type, but it's the same pattern for the IssuesArgs and PullRequestsArgs. It looks a bit complicated, so, @vrom911, please review and let me know if we should proceed with this π
I think, the quality of our custom error messages can be really great! So, in the same spirit, any suggestions to improving error messages are appreciated. For example, one alternative more verbose error message:
You haven't set some of the required fields of 'RepositoryArgs'.
Typically, you set values of this type using lenses:
defRepositoryArgs
& set ownerL "owner-name"
& set nameL "repository-name"
Use corresponding lenses to set the following missing fields:
* name
Lens: nameL (from GitHub.Lens.HasOwnerName)
I recommend to start review from the GitHub.Lens module, then GitHub.Issues and GitHub.PullRequests, and then GitHub.Repository.
Resolves #10
It works! The errors messages are on the screenshot below:
Currently, I've implemented this only for the
Repository
type, but it's the same pattern for theIssuesArgs
andPullRequestsArgs
. It looks a bit complicated, so, @vrom911, please review and let me know if we should proceed with this πI think, the quality of our custom error messages can be really great! So, in the same spirit, any suggestions to improving error messages are appreciated. For example, one alternative more verbose error message:
I recommend to start review from the
GitHub.Lens
module, thenGitHub.Issues
andGitHub.PullRequests
, and thenGitHub.Repository
.