Skip to content

Commit a5b36e1

Browse files
authored
Merge pull request #46 from CodinGame/suppress-error-log2
Really suppress error
2 parents b77d702 + 9039bdd commit a5b36e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vscodeParts.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ function createPart (part: Parts, location: ViewContainerLocation | null) {
2323
element.style.flex = '1'
2424
element.style.minWidth = '0'
2525

26-
initializePromise.then(() => {
27-
attachPart(part, element)
28-
}, () => {
29-
// ignore, probably part not registered
30-
})
26+
initializePromise
27+
.then(() => attachPart(part, element))
28+
.catch(() => {
29+
// ignore, probably part not registered
30+
})
3131

3232
let counter = 0
3333

0 commit comments

Comments
 (0)