Skip to content

Commit d412d69

Browse files
committed
revise
1 parent 34a82dd commit d412d69

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/svelte/src/internal/client/dev/inspect.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ export function inspect(get_value, inspector = console.log) {
1818

1919
// Capturing the value might result in an exception due to the inspect effect being
2020
// sync and thus operating on stale data. In the case we encounter an exception we
21-
// can bail-out of reporting the value
21+
// can bail-out of reporting the value. Instead we simply console.error the error
22+
// so at least it's known that an error occured, but we don't stop execution
2223
try {
2324
value = get_value();
24-
} catch {
25-
// NO-OP
25+
} catch (error) {
26+
// eslint-disable-next-line no-console
27+
console.error(error);
2628
}
2729

2830
if (value !== UNINITIALIZED) {

0 commit comments

Comments
 (0)