logs: log platform error message in git

This commit is contained in:
Rhys Arkins 2020-08-12 07:13:31 +02:00
parent 6ddda0fa4b
commit 095cb3b002

View file

@ -64,6 +64,7 @@ function checkForPlatformFailure(err: Error): void {
];
for (const errorStr of platformFailureStrings) {
if (err.message.includes(errorStr)) {
logger.debug({ err }, 'Converting git error to ExternalHostError');
throw new ExternalHostError(err, 'git');
}
}