From aaeb897338ad8befb681a567765b40c7052adf5a Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Mon, 10 Apr 2017 07:18:22 -0700 Subject: [PATCH] refactor/rename: add line number to ambiguityError Updates golang/go#19906 Change-Id: If13c828541cdb3937e5e970dd8add7615d36d866 Reviewed-on: https://go-review.googlesource.com/40171 Reviewed-by: David R. Jenni Reviewed-by: Robert Griesemer Reviewed-by: Alan Donovan --- refactor/rename/spec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/refactor/rename/spec.go b/refactor/rename/spec.go index cc1228c6ce..c807565301 100644 --- a/refactor/rename/spec.go +++ b/refactor/rename/spec.go @@ -558,8 +558,8 @@ func ambiguityError(fset *token.FileSet, objects []types.Object) error { buf.WriteString(", ") } posn := fset.Position(obj.Pos()) - fmt.Fprintf(&buf, "%s at %s:%d", - objectKind(obj), filepath.Base(posn.Filename), posn.Column) + fmt.Fprintf(&buf, "%s at %s:%d:%d", + objectKind(obj), filepath.Base(posn.Filename), posn.Line, posn.Column) } return fmt.Errorf("ambiguous specifier %s matches %s", objects[0].Name(), buf.String())