fix verb mismatch in a format string

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
Alexander Bezzubov 2019-04-09 15:54:31 +02:00
parent 110822b014
commit 41478262f3
No known key found for this signature in database
GPG Key ID: 8039F5787EFCD05D

View File

@ -51,7 +51,7 @@ func loadHeuristics(yaml *Heuristics) (map[string][]*LanguagePattern, error) {
// unroll to a single map
for _, ext := range disambiguation.Extensions {
if _, ok := patterns[ext]; ok {
return nil, fmt.Errorf("cannt add extension '%s', it already exists for %q", ext, patterns[ext])
return nil, fmt.Errorf("cannt add extension '%s', it already exists for %+v", ext, patterns[ext])
}
patterns[ext] = rules
}