Skip to content

Commit 8c822e4

Browse files
committed
fix example
1 parent fc6808c commit 8c822e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

text/0004-interoperable-exceptions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ try {
7878
// exn here should safely be coerced to `Error` instance.
7979
console.log("recover from " + error.name);
8080
result = "recovered";
81+
} else {
82+
throw exn;
8183
}
82-
throw exn;
8384
}
8485
```

0 commit comments

Comments
 (0)