Commit 6f6e1d7
committed
Improve getPixel error handling
Adding a require to getPixel makes the exception for
out-of-bounds coordinates be thrown in the calling thread,
which makes the stack trace easier to understand.1 parent bd7b383 commit 6f6e1d7
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
0 commit comments