File tree Expand file tree Collapse file tree 4 files changed +25
-8
lines changed Expand file tree Collapse file tree 4 files changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,15 @@ import { gitCommit } from "../src/command/git-commit";
2
2
import { gitCommitScopes , gitCommitTypes } from "../src/shared/config" ;
3
3
4
4
async function cmv ( ) {
5
- await Promise . all ( [
6
- gitCommit ( gitCommitTypes , gitCommitScopes , {
7
- enableEmoji : false ,
8
- } ) ,
9
- ] ) ;
5
+ try {
6
+ await Promise . all ( [
7
+ gitCommit ( gitCommitTypes , gitCommitScopes , {
8
+ enableEmoji : false ,
9
+ } ) ,
10
+ ] ) ;
11
+ } catch ( error ) {
12
+ console . warn ( error ) ;
13
+ }
10
14
}
11
15
12
16
cmv ( ) ;
Original file line number Diff line number Diff line change 1
1
import { gitCommitVerify } from "../src/command/git-commit-verify" ;
2
2
3
3
async function cmv ( ) {
4
- await Promise . all ( [ gitCommitVerify ( ) ] ) ;
4
+ try {
5
+ await Promise . all ( [ gitCommitVerify ( ) ] ) ;
6
+ } catch ( error ) {
7
+ console . warn ( error ) ;
8
+ }
5
9
}
6
10
7
11
cmv ( ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ import { cleanUpDirs } from "../src/shared/config";
2
2
import { cleanUp } from "./../src/command/cheanup" ;
3
3
4
4
async function cmv ( ) {
5
- await Promise . all ( [ cleanUp ( cleanUpDirs ) ] ) ;
5
+ try {
6
+ await Promise . all ( [ cleanUp ( cleanUpDirs ) ] ) ;
7
+ } catch ( error ) {
8
+ console . warn ( error ) ;
9
+ }
6
10
}
7
11
8
12
cmv ( ) ;
Original file line number Diff line number Diff line change 1
1
import { gitInitSimpleHooks } from "../src/command/git-init-hooks" ;
2
+
2
3
async function prepare ( ) {
3
- await Promise . all ( [ gitInitSimpleHooks ( process . cwd ( ) ) ] ) ;
4
+ try {
5
+ await Promise . all ( [ gitInitSimpleHooks ( process . cwd ( ) ) ] ) ;
6
+ } catch ( error ) {
7
+ console . warn ( error ) ;
8
+ }
4
9
}
5
10
6
11
prepare ( ) ;
You can’t perform that action at this time.
0 commit comments