Skip to content

Commit

Permalink
Fixes on errorManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregwar committed Sep 30, 2013
1 parent 1bca581 commit 2463e23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function resolve($section, $data)
return $reference->resolve($this, $data);
}

$this->errorManager('Unknown reference section '.$section);
$this->errorManager->error('Unknown reference section '.$section);
}

public function found($section, $data)
Expand All @@ -157,7 +157,7 @@ public function found($section, $data)
return $reference->found($this, $data);
}

$this->errorManager('Unknown reference section '.$section);
$this->errorManager->error('Unknown reference section '.$section);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion ErrorManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function abortOnError($abort)

public function error($message)
{
if ($abort) {
if ($this->abort) {
throw new \Exception($message);
} else {
echo '/!\\ '.$message."\n";
Expand Down

0 comments on commit 2463e23

Please sign in to comment.