Revision: 101
Author: cosimo.streppone
Date: Mon Oct  5 07:39:49 2009
Log: Added trace of full command when javap invocation failes
http://code.google.com/p/java2perl6/source/detail?r=101

Modified:
 /trunk/lib/Java/Javap.pm

=======================================
--- /trunk/lib/Java/Javap.pm    Sun Oct  4 06:34:16 2009
+++ /trunk/lib/Java/Javap.pm    Mon Oct  5 07:39:49 2009
@@ -58,7 +58,7 @@
        $options ||= {};

        open(my $javap_fh, '-|', $JAVAP_EXECUTABLE, %$options, @$classes)
-               or croak "Couldn't open $JAVAP_EXECUTABLE subprocess: $!";
+               or croak "'$JAVAP_EXECUTABLE @{[ %$options ]} @$classes' failed: 
$!";

        my $javap_output = q{};
        while (<$javap_fh>) {

Reply via email to