Commit ae3e65fd authored by Leo Gordon's avatar Leo Gordon
Browse files

Do not assume any error is related to the format. Just display it as it is.

parent 8a12d750
......@@ -88,15 +88,7 @@ sub main {
my $call = 'as_'.$self->{'format'};
eval {$graphviz->$call($self->{'output'});};
if($@) {
warn $@;
pod2usage({
-message => 'Error detected. Check '.$self->{'format'}.' is a valid format. Use a format name as supported by graphviz',
-exitvalue => 1,
-verbose => 2
});
}
$graphviz->$call($self->{'output'});
}
__END__
......
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