Skip to content

Commit 65735ad

Browse files
committed
include $@ in error
1 parent 3810f34 commit 65735ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Net/RDAP.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,12 @@ sub _get {
449449
} else {
450450
unlink($file) if (-e $file);
451451

452+
chomp($@);
453+
452454
return $self->error(
453455
url => $url,
454456
errorCode => 500,
455-
title => 'JSON parse error',
457+
title => sprintf('JSON parse error: %s', $@),
456458
);
457459
}
458460
}

0 commit comments

Comments
 (0)