Skip to content

Commit

Permalink
begining fix to rare compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Feb 7, 2017
1 parent 18d3651 commit c46cd0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Pug.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public function __construct(Container $app = null) {

public function get($path, array $data=[]) {
$result = $this->compile($path, $data);
if ($result['data'] === false) {
return 'Pug Compilation Erorr: '.json_encode($result);
}
return $result['data'];
}

Expand Down

0 comments on commit c46cd0f

Please sign in to comment.