Commit 611d9a1
committed
Provide more information on Routable fatalErrors
The default implementation for the function to push, pon, and change
provided via protocol extension fatalErrors to notify developers that
they haven't provided the required implementation.
The message used in the fatalError was not informative enough. These
changes make it granular to the actual function being used, as well as
adding the type that caused the failure, and the route element
parameters that the code was trying to act on.
The new error message for push for example will look something like:
```
This routable cannot push segments. You have not implemented it.
(Asked RootRoutable to push landing)
```1 parent 1055ca8 commit 611d9a1
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
0 commit comments