Commit a393582
committed
[mod] Throw on invalid compile-time min-level
This is technically a breaking change.
Before this commit:
If an invalid compile-time min-level was provided, it would be
silently ignored.
User would need to specifically check their *config* :compile-time-config
value to see that something went wrong.
After this commit:
If an invalid compile-time min-level is provided, immediately throw.
This'd happen at compile-time.
Motivation:
The previous behaviour made it easy to miss an invalid
compile-time min-level.
While the change introduced here is technically breaking, it would
break ONLY those users with an invalid min-level - and it'd break
them only at compile-time.
So this should hopefully be a welcome change if documented clearly.1 parent 49c5de4 commit a393582
1 file changed
Lines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
184 | 179 | | |
185 | 180 | | |
186 | 181 | | |
| |||
0 commit comments