Skip to content

Commit

Permalink
[pbctl] Report both filenames in error messages arising from file copy
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
  • Loading branch information
mcb30 committed Oct 12, 2010
1 parent 0abc485 commit 3921d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pbctl/pbctl
Expand Up @@ -97,7 +97,7 @@ die "Device $device not present\n" unless -d $device;
# Program device, if instructed to do so
if ( $program ) {
my $file = $device."/program";
copy ( $program, $file ) or die "Could not program via $file: $!\n";
copy ( $program, $file ) or die "Could not program $program via $file: $!\n";
}

# Perform any actions, if instructed to do so
Expand Down

0 comments on commit 3921d0c

Please sign in to comment.