Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Update Processor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ovanschie authored Apr 28, 2017
1 parent 619b81f commit 43594dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public function getLines()
*/
public function addLine($ip, $domain, $aliases = '')
{

$this->lines[$domain] = ['ip' => $ip, 'aliases' => $aliases];

return $this;
Expand Down Expand Up @@ -168,7 +167,7 @@ protected function explodeLine($line)
protected function writeFile($filePath)
{
if (is_file($filePath) && ! is_writable($filePath)) {
throw new Exception(sprintf("File '%s' is not writable", $filePath));
throw new Exception(sprintf("File '%s' is not writable, run with sudo?", $filePath));
}

$file = fopen($filePath, 'w');
Expand Down

0 comments on commit 43594dd

Please sign in to comment.