We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6876d5 commit cf14462Copy full SHA for cf14462
1 file changed
src/git/parseOutput.ts
@@ -55,9 +55,9 @@ export function parseStatus(line: string): FileChange {
55
*/
56
export function parseDiffIndex(line: string): FileChange {
57
if (line.length <= 4) {
58
- throw new Error(
59
- `Invalid input. Input string must be at least 4 characters. Got: '${line}'`,
60
- );
+ const errorMsg = `Invalid input. Input string must be at least 4 characters. Got: '${line}'`;
+ console.error(errorMsg);
+ throw new Error(errorMsg);
61
}
62
const x = line[0];
63
const y = UNMODIFIED;
0 commit comments