Skip to content

Commit 655bd62

Browse files
committed
chore(examples): Update try/catch for Deno change
the default type of the caught value changed to unknown in a Typescript update.
1 parent 2fbdf5a commit 655bd62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/examples/top-nodes.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ for (const node of nodeList.items) {
4646

4747
printStats(summary);
4848

49-
} catch (err) {
49+
} catch (err: unknown) {
5050
console.log(nodeName, ':');
51-
console.log(' -', 'Failed:', err.message);
51+
console.log(' -', 'Failed:', (err as Error).message);
5252
}
5353
}
5454

0 commit comments

Comments
 (0)