Commit f0117f59 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[dome] jTry emits a warning in console

parent a105cb3d
......@@ -188,7 +188,7 @@ export function jCatch<A>(fn: Loose<A>, fallBack: A): Safe<A> {
try {
return fn(js) ?? fallBack;
} catch (err) {
if (DEVEL) console.error('[Dome.json]', err);
if (DEVEL) console.warn('[Dome.json]', err);
return fallBack;
}
};
......@@ -203,7 +203,7 @@ export function jTry<A>(fn: Loose<A>, defaultValue?: A): Loose<A> {
try {
return fn(js) ?? defaultValue;
} catch (err) {
if (DEVEL) console.error('[Dome.json]', err);
if (DEVEL) console.warn('[Dome.json]', err);
return defaultValue;
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment