We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34a82dd commit d412d69Copy full SHA for d412d69
packages/svelte/src/internal/client/dev/inspect.js
@@ -18,11 +18,13 @@ export function inspect(get_value, inspector = console.log) {
18
19
// Capturing the value might result in an exception due to the inspect effect being
20
// sync and thus operating on stale data. In the case we encounter an exception we
21
- // can bail-out of reporting the value
+ // 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
23
try {
24
value = get_value();
- } catch {
25
- // NO-OP
+ } catch (error) {
26
+ // eslint-disable-next-line no-console
27
+ console.error(error);
28
}
29
30
if (value !== UNINITIALIZED) {
0 commit comments