Add the offending character to the bad-ninja-name error message.
Change-Id: I93260a064aece41c53afcecad73c037eb87e5aea
This commit is contained in:
parent
2fb2095caa
commit
6736ec30da
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue