Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Commit

Permalink
[#17] Fixed error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
enepomnyaschih committed Mar 3, 2012
1 parent c503870 commit 0e82a52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jwidget/build/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,9 @@ function includeJsList($path, &$jspaths)
return $this->includeJs($path);
}

if (!isset($this->jspaths[$path]))
throw new Exception("Can't find JS list (jslist: $path)");

foreach ($this->jspaths[$path] as $jspath)
$jspaths[] = $jspath;

Expand Down

0 comments on commit 0e82a52

Please sign in to comment.