-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xerrors: check for nil pointers in As's target
As already checks for a nil or non-pointer target; check for nil pointers as well. Produces a better error message and catches incorrect target parameters even when the target doesn't match the error. Change-Id: I06efb4b78f640b17076f002519d275b328b42557 Reviewed-on: https://go-review.googlesource.com/c/161657 Reviewed-by: Marcel van Lohuizen <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters