improve readability

parent a6dc0726
......@@ -138,7 +138,11 @@ sub fail {
$error = mkerror($error, @_) if (!$error->isa('Net::RDAP::Error'));
printf(STDERR "FAIL (#%04d): %s\n\n", $error->errorCode, $error->title);
my @description = $error->description;
print "Description:\n\n".fill(" ", " ", join("\n", @description))."\n\n" if (scalar(@description) > 0);
if (scalar(@description) > 0) {
print "Description:\n\n".
fill(" ", " ", join("\n", @description)).
"\n\n";
}
}
sub mkerror {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment