File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,9 @@ export async function transform(
87
87
}
88
88
89
89
const hasChanged = editor . hasChanged ( ) ;
90
- const hasIssues = updates . some ( ( u ) => u . result . issues ?. length ) ;
90
+ const hasIssues = updates . some (
91
+ ( u ) => u . result . issues ?. filter ( Boolean ) . length ,
92
+ ) ;
91
93
const time = performance . now ( ) - start ;
92
94
93
95
return {
@@ -140,15 +142,14 @@ async function _transformBlock(
140
142
result . issues = [
141
143
...( result . issues || [ ] ) ,
142
144
...nestedRes . updates . flatMap ( ( u ) => u . result . issues || [ ] ) ,
143
- ] ;
145
+ ] . filter ( Boolean ) ;
144
146
}
145
147
}
146
148
147
149
return result ;
148
- } catch ( _error : any ) {
149
- const error = `(${ block . generator } ) ${ _error . message || _error } ` ;
150
+ } catch ( error : any ) {
150
151
return {
151
- contents : `<!-- ⚠️ ${ error } -->` ,
152
+ contents : `<!-- ⚠️ ( ${ block . generator } ) ${ error . message || error } -->` ,
152
153
issues : [ error ] ,
153
154
} ;
154
155
}
You can’t perform that action at this time.
0 commit comments