Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 6fac81d

Browse files
chore: add more error messaging
1 parent d71dbcc commit 6fac81d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/checkPush.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ function getChangedFilePaths(remoteSHA, localSHA) {
3434
remoteSHA,
3535
localSHA,
3636
]);
37+
if (!diff) {
38+
printEmptyLine();
39+
printFailure(
40+
`We were unable to get the difference between ${remoteSHA} and ${localSHA}`
41+
);
42+
printSuggestion(
43+
" ↳ Please review your SHAs above and contact support, if needed:",
44+
"https://app.codiga.io/support"
45+
);
46+
printEmptyLine();
47+
process.exit(1);
48+
}
3749
return diff.split("\n").filter((s) => s);
3850
}
3951

0 commit comments

Comments
 (0)