Skip to content

Commit a762da1

Browse files
committed
Restore exceptions from JsPhpize
1 parent a46bca1 commit a762da1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">=5.3.0",
14-
"js-phpize/js-phpize": "^1.4.2",
14+
"js-phpize/js-phpize": "^1.10.0",
1515
"phug/compiler": "^0.2.1"
1616
},
1717
"require-dev": {

src/JsPhpize/JsPhpizePhug.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
use Phug\AbstractCompilerModule;
77
use Phug\Compiler;
88
use Phug\CompilerEvent;
9-
use Phug\CompilerException;
10-
use Phug\LexerException;
11-
use Phug\ParserException;
9+
use JsPhpize\Compiler\Exception as CompilerException;
10+
use JsPhpize\Lexer\Exception as LexerException;
11+
use JsPhpize\Parser\Exception as ParserException;
1212
use Phug\Util\ModuleContainerInterface;
1313

1414
class JsPhpizePhug extends AbstractCompilerModule
@@ -77,6 +77,8 @@ public function compile(JsPhpize $jsPhpize, $code, $fileName)
7777
) {
7878
return $exception;
7979
}
80+
var_dump($code);
81+
exit;
8082

8183
throw $exception;
8284
}

0 commit comments

Comments
 (0)