Skip to content

Commit e6634de

Browse files
committed
check also stderr for errors
1 parent c545f9c commit e6634de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/env/node/git/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ export class Git {
16031603
} catch (ex) {
16041604
const msg: string = ex?.toString() ?? '';
16051605
for (const [error, reason] of resetErrorAndReason) {
1606-
if (error.test(msg)) {
1606+
if (error.test(msg) || error.test(ex.stderr ?? '')) {
16071607
throw new ResetError(reason, ex);
16081608
}
16091609
}

0 commit comments

Comments
 (0)