summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-11-11 10:33:24 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-11-11 10:33:24 +0000
commitfa49b293263f2b2c3396d875dac09196c64cc348 (patch)
treefd3bf9f96b4a79e4e4720f32ebc793617364a122
parent5fb289bbb3854ae8861cbdde408b77785b765031 (diff)
xpp: turn in back into a 'die' in trunk to expose more bugs.
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7559 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--xpp/perl_modules/Dahdi/Hardware/USB.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpp/perl_modules/Dahdi/Hardware/USB.pm b/xpp/perl_modules/Dahdi/Hardware/USB.pm
index 48690da..39f6d82 100644
--- a/xpp/perl_modules/Dahdi/Hardware/USB.pm
+++ b/xpp/perl_modules/Dahdi/Hardware/USB.pm
@@ -114,7 +114,7 @@ sub set_transport($$) {
sub _get_attr($) {
my $attr_file = shift;
- open(ATTR, $attr_file) or return undef;
+ open(ATTR, $attr_file) or die "Failed to read SysFS attribute $attr_file\n";
my $value = <ATTR>;
chomp $value;
return $value;