Skip to content
Permalink
Browse files

[statistics] Catch error when the folder does not permission (#353)

* [statistics] Catch error when the folder does not permission

* [statistics] Return if the error exist
  • Loading branch information...
harold20 authored and enzolutions committed May 29, 2019
1 parent c4d578d commit b77ce831aa02b936bb96739b82b9ffb262794f09
Showing with 8 additions and 5 deletions.
  1. +8 −5 src/EventSubscriber/SaveStatisticsListener.php
@@ -102,11 +102,14 @@ public function saveStatistics(ConsoleTerminateEvent $event)
$information = $information . ',' . $countCodeLines;
}
$this->fs->appendToFile(
$path . date('Y-m-d') . '.csv',
$information . PHP_EOL
);
try{
$this->fs->appendToFile(
$path . date('Y-m-d') . '.csv',
$information . PHP_EOL
);
}catch (\Exception $exception) {
return;
}
}
/**

0 comments on commit b77ce83

Please sign in to comment.
You can’t perform that action at this time.