aboutsummaryrefslogtreecommitdiffstats
path: root/Bin
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-05-27 12:08:26 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-05-27 12:08:26 +0200
commit7a734fadbe91a04a081bbbf8e3ca021d166df3b1 (patch)
treee5368c2ee146111a02286260cb0bd223360608d5 /Bin
parent58d5acd686cbb7ce0915905212ad928a6d4c4acd (diff)
downloadCompiler-7a734fadbe91a04a081bbbf8e3ca021d166df3b1.zip
Compiler-7a734fadbe91a04a081bbbf8e3ca021d166df3b1.tar.gz
Compiler-7a734fadbe91a04a081bbbf8e3ca021d166df3b1.tar.bz2
Allow to print token sequence when error occured.
Diffstat (limited to 'Bin')
-rw-r--r--Bin/Pp.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Bin/Pp.php b/Bin/Pp.php
index 2fef455..ac2cdf1 100644
--- a/Bin/Pp.php
+++ b/Bin/Pp.php
@@ -145,7 +145,12 @@ class Pp extends \Hoa\Console\Dispatcher\Kit {
}
catch ( \Hoa\Compiler\Exception $e ) {
- $this->printTrace($compiler);
+ if(true === $tokenSequence) {
+
+ $this->printTokenSequence($compiler);
+ echo "\n\n";
+ }
+
throw $e;
return 1;