1
0
Fork 0

Reword exception text to evoke somewhat less panic

Refs https://github.com/composer/composer/issues/5196#issuecomment-346754244

Signature mismatch could indicate MitM, or just a CDN issue which is rather more likely.
pull/6875/head
Niels Keurentjes 2017-11-24 11:16:09 +01:00 committed by Jordi Boggiano
parent 5960f715f0
commit eab705d057
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
}
// TODO use scarier wording once we know for sure it doesn't do false positives anymore
throw new RepositorySecurityException('The contents of '.$filename.' do not match its signature. This should indicate a man-in-the-middle attack. Try running composer again and report this if you think it is a mistake.');
throw new RepositorySecurityException('The contents of '.$filename.' do not match its signature. This could indicate a man-in-the-middle attack. Try running composer again and report this if you think it is a mistake.');
}
$data = JsonFile::parseJson($json, $filename);