Fix fmt.Errorf format argument in ParseFullReference
The error path passed an int to fmt.Errorf with %q, which expects a string. Use the original reference string to avoid a format mismatch. Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
This commit is contained in:
parent
49f72234ac
commit
bd0177b039
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ func ParseFullReference(s string) (ghrepo.Interface, int, error) {
|
|||
|
||||
number, err := strconv.Atoi(m[3])
|
||||
if err != nil {
|
||||
return nil, 0, fmt.Errorf("invalid reference: %q", number)
|
||||
return nil, 0, fmt.Errorf("invalid reference: %q", s)
|
||||
}
|
||||
|
||||
owner := m[1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue