diff --git a/src/core/handleError.ts b/src/core/handleError.ts index 5d4f923..4a6c917 100644 --- a/src/core/handleError.ts +++ b/src/core/handleError.ts @@ -12,14 +12,14 @@ export const handleError = function handleErr(err: unknown, hNode: HNode) { owner = owner.owner; } - owner.err = err; - - mark(owner); - - } else { - - throw err; + if (owner.desc) { + owner.err = err; + mark(owner); + return; + } } + throw err; + };