fix: Truncate git clone errors

This commit is contained in:
Andras Bacsai 2022-02-14 09:48:46 +01:00
parent 3c3333d3df
commit 77400bbbb0

View File

@ -48,9 +48,11 @@ export function ErrorHandler(e) {
return line; return line;
} }
}); });
truncatedError.message = truncatedArray.join('-'); truncatedError.message = truncatedArray.join('-');
} }
if (e.message.includes('git clone')) {
truncatedError.message = 'git clone failed';
}
sentry.captureException(truncatedError); sentry.captureException(truncatedError);
const payload = { const payload = {
status: truncatedError.status || 500, status: truncatedError.status || 500,