File tree 2 files changed +15
-8
lines changed
clients/vue-web/src/fetch
2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
lint :
12
- runs-on : ubuntu-latest
12
+ runs-on : ubuntu-latest
13
+ permissions :
14
+ statuses : write
13
15
steps :
14
- - uses : aslafy-z/conventional-pr-title-action@main
16
+ - uses : aslafy-z/conventional-pr-title-action@v3
15
17
with :
16
- preset : conventional-changelog-angular@^5.0.6
18
+ preset : " @commitlint/config-conventional@^12.1.4 "
17
19
env :
18
20
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -122,11 +122,16 @@ afetch.use(
122
122
return data ;
123
123
} ,
124
124
handler : ( error ) => {
125
- errorRef . value = new SharedError (
126
- error . message || 'System error!' ,
127
- ( axios . isAxiosError ( error ) ? error . response ?. status : ( error as any ) . code ) || 500 ,
128
- ) ;
129
- return new Promise ( ( ) => { } ) ;
125
+ errorRef . value =
126
+ error instanceof SharedError
127
+ ? error
128
+ : new SharedError (
129
+ error . message || 'System error!' ,
130
+ ( axios . isAxiosError ( error ) ? error . response ?. status : ( error as any ) . code ) || 500 ,
131
+ ) ;
132
+ return new Promise ( ( ) => {
133
+ // stop next
134
+ } ) ;
130
135
} ,
131
136
} ) ,
132
137
) ;
You can’t perform that action at this time.
0 commit comments