File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export function formatHandleErrors(
164
164
) : Array < string > {
165
165
const stacks = new Map < string , { stack : string ; names : Set < string > } > ( ) ;
166
166
167
- errors . forEach ( err => {
167
+ for ( const err of errors ) {
168
168
const formatted = formatExecError (
169
169
err ,
170
170
config ,
@@ -179,14 +179,14 @@ export function formatHandleErrors(
179
179
const ansiFree : string = stripAnsi ( formatted ) ;
180
180
const match = ansiFree . match ( / \s + a t ( .* ) / ) ;
181
181
if ( ! match || match . length < 2 ) {
182
- return ;
182
+ continue ;
183
183
}
184
184
185
185
const stackText = ansiFree . slice ( ansiFree . indexOf ( match [ 1 ] ) ) . trim ( ) ;
186
186
187
187
const name = ansiFree . match ( / (?< = ● { 2 } ) .* $ / m) ;
188
188
if ( name == null || name . length === 0 ) {
189
- return ;
189
+ continue ;
190
190
}
191
191
192
192
const stack = stacks . get ( stackText ) || {
@@ -197,7 +197,7 @@ export function formatHandleErrors(
197
197
stack . names . add ( name [ 0 ] ) ;
198
198
199
199
stacks . set ( stackText , stack ) ;
200
- } ) ;
200
+ }
201
201
202
202
return Array . from ( stacks . values ( ) ) . map ( ( { stack, names} ) =>
203
203
stack . replace ( '%%OBJECT_NAME%%' , Array . from ( names ) . join ( ',' ) ) ,
You can’t perform that action at this time.
0 commit comments