fix undefined count

This commit is contained in:
Jeremy Kauffman 2017-06-28 15:45:24 -04:00
parent ed80d9fa2e
commit 429ca37e55

View file

@ -122,11 +122,7 @@ lbryuri.parse = function(uri, requireProto = false) {
const pathBadChars = path.match(/[^A-Za-z0-9-]/g); const pathBadChars = path.match(/[^A-Za-z0-9-]/g);
if (pathBadChars) { if (pathBadChars) {
throw new Error( throw new Error(
__( __(`Invalid character in path: %s`, nameBadChars.join(", "))
`Invalid character %s in path: %s`,
count == 1 ? "" : "s",
nameBadChars.join(", ")
)
); );
} }