Skip to content

Commit

Permalink
fix(documentator): `\LastDragon_ru\LaraASP\Documentator\Processor\Exe…
Browse files Browse the repository at this point in the history
…cutor` will not catch `\Throwable`.
  • Loading branch information
LastDragon-ru committed Feb 14, 2025
1 parent cc7d283 commit ef15090
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/documentator/src/Processor/Executor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use LastDragon_ru\LaraASP\Documentator\Processor\FileSystem\Directory;
use LastDragon_ru\LaraASP\Documentator\Processor\FileSystem\File;
use LastDragon_ru\LaraASP\Documentator\Processor\FileSystem\FileSystem;
use Throwable;
use Traversable;

use function array_values;
Expand Down Expand Up @@ -113,7 +112,7 @@ private function file(File $file): void {
}

$this->fs->commit();
} catch (Throwable $exception) {
} catch (Exception $exception) {
$this->dispatcher->notify(new FileFinished(FileFinishedResult::Failed));

throw $exception;
Expand Down

0 comments on commit ef15090

Please # to comment.