Skip to content

Commit cf14462

Browse files
committed
update parseOutput.ts
1 parent e6876d5 commit cf14462

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/git/parseOutput.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ export function parseStatus(line: string): FileChange {
5555
*/
5656
export function parseDiffIndex(line: string): FileChange {
5757
if (line.length <= 4) {
58-
throw new Error(
59-
`Invalid input. Input string must be at least 4 characters. Got: '${line}'`,
60-
);
58+
const errorMsg = `Invalid input. Input string must be at least 4 characters. Got: '${line}'`;
59+
console.error(errorMsg);
60+
throw new Error(errorMsg);
6161
}
6262
const x = line[0];
6363
const y = UNMODIFIED;

0 commit comments

Comments
 (0)