Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Commit

Permalink
emit more information on failed build command
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed May 2, 2012
1 parent 6bb9a94 commit 93738e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Alien/Base/ModuleBuild.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -329,9 +329,13 @@ sub alien_build {
my $commands = $self->alien_build_commands; my $commands = $self->alien_build_commands;


foreach my $command (@$commands) { foreach my $command (@$commands) {
my $success = $self->do_system( $command ); my %result = $self->do_system( $command );
unless ($success) { unless ($result{success}) {
carp "External command ($command) failed! Error: $?\n"; carp "External command ($command) failed! Error: $?\n";
# diagnostic to be removed later
require Data::Dumper;
warn Dumper \%result;
# # # #
return 0; return 0;
} }
} }
Expand Down

0 comments on commit 93738e2

Please sign in to comment.