PushCertificateParser: Change error string for invalid field

The old one didn't take an argument; the new one includes the field
name.

Change-Id: I175dc75dcdd05ba6fdec315c04c79550cfdc2342
This commit is contained in:
Dave Borowitz 2015-07-01 11:29:09 -07:00
parent 618f213da0
commit f22f33f5bf
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ private static String parseHeader(StringReader reader, String header)
|| !s.startsWith(header)
|| s.charAt(header.length()) != ' ') {
throw new PackProtocolException(MessageFormat.format(
JGitText.get().pushCertificateInvalidHeader, header));
JGitText.get().pushCertificateInvalidField, header));
}
return s.substring(header.length() + 1);
}