ziglings/patches/patches/024_errors4.patch
2021-03-16 11:00:52 -04:00

10 lines
212 B
Diff

62c62,68
< return detectProblems(n) ???
---
> return detectProblems(n) catch |err| {
> if (err == MyNumberError.TooSmall) {
> return 10;
> }
>
> return err;
> };