Commit ede8151
Fix missing error message with tar (fixes #314)
When backing up from a `tar` source, phpbu used to check if the
specified path exists during the `::setup()` stage, not the
actual `::backup()` stage. This might cause phpbu to die by
an "uncaught" exception (aka. no logging / email being sent).
This commit removes the existence check from the `::setup()`,
which already doubled an existing check in the `::backup()`
stage (through `\phpbu\App\Backup\Source\Tar::validatePath`).1 parent cc121aa commit ede8151
File tree
2 files changed
+27
-10
lines changed- src/Backup/Source
- tests/phpbu/Backup/Source
2 files changed
+27
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | 227 | | |
231 | 228 | | |
232 | 229 | | |
| |||
329 | 326 | | |
330 | 327 | | |
331 | 328 | | |
332 | | - | |
| 329 | + | |
333 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
334 | 335 | | |
335 | | - | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
519 | 518 | | |
520 | 519 | | |
521 | 520 | | |
522 | | - | |
| 521 | + | |
523 | 522 | | |
524 | 523 | | |
| 524 | + | |
| 525 | + | |
525 | 526 | | |
526 | 527 | | |
527 | 528 | | |
| |||
532 | 533 | | |
533 | 534 | | |
534 | 535 | | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
535 | 551 | | |
536 | 552 | | |
537 | 553 | | |
| |||
0 commit comments