Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
huang2002 committed Feb 1, 2019
1 parent 8ed2362 commit 09691ec
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/core/handleError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export const handleError = function handleErr(err: unknown, hNode: HNode<any>) {
owner = owner.owner;
}

owner.err = err;

mark(owner);

} else {

throw err;
if (owner.desc) {
owner.err = err;
mark(owner);
return;
}

}

throw err;

};

0 comments on commit 09691ec

Please sign in to comment.