Add the offending character to the bad-ninja-name error message.

Change-Id: I93260a064aece41c53afcecad73c037eb87e5aea
This commit is contained in:
Jamie Gennis 2014-10-05 07:40:16 -07:00 committed by Colin Cross
parent 2fb2095caa
commit 6736ec30da

View file

@ -237,8 +237,9 @@ func validateNinjaName(name string) error {
(r == '-') ||
(r == '.')
if !valid {
return fmt.Errorf("%q contains an invalid Ninja name character "+
"at byte offset %d", name, i)
"%q at byte offset %d", name, r, i)
}
}
return nil