Commit 0f22c4f
authored
Handle error when creating deltas (#2243)
Fixes this error:
```
CaseClauseError: no case clause matching: {:error, :delta_not_created}
File "lib/nerves_hub/firmwares.ex", line 421, in NervesHub.Firmwares.create_firmware_delta/2
File "lib/nerves_hub/workers/firmware_delta_builder.ex", line 53, in NervesHub.Workers.FirmwareDeltaBuilder.maybe_create_firmware_delta/2
File "lib/nerves_hub/workers/firmware_delta_builder.ex", line 29, in NervesHub.Workers.FirmwareDeltaBuilder.perform/1
File "lib/oban/queue/executor.ex", line 145, in Oban.Queue.Executor.perform/1
File "lib/oban/queue/executor.ex", line 77, in Oban.Queue.Executor.call/1
File "lib/task/supervised.ex", line 101, in Task.Supervised.invoke_mfa/2
File "lib/task/supervised.ex", line 36, in Task.Supervised.reply/4
```1 parent 5f88e40 commit 0f22c4f
File tree
2 files changed
+26
-0
lines changed- lib/nerves_hub
- test/nerves_hub
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
484 | 488 | | |
485 | 489 | | |
486 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
321 | 343 | | |
322 | 344 | | |
323 | 345 | | |
| |||
0 commit comments