From 6736ec30da7d37fc3f60bd9bc6750ae86a233bd3 Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Sun, 5 Oct 2014 07:40:16 -0700 Subject: [PATCH] Add the offending character to the bad-ninja-name error message. Change-Id: I93260a064aece41c53afcecad73c037eb87e5aea --- blueprint/ninja_strings.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blueprint/ninja_strings.go b/blueprint/ninja_strings.go index 3bc7c51..6174047 100644 --- a/blueprint/ninja_strings.go +++ b/blueprint/ninja_strings.go @@ -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