Commit b2cae78f authored by Jessica Severin's avatar Jessica Severin
Browse files

added more messages for fail cases

parent 01961b14
......@@ -12,9 +12,13 @@ GetOptions('help' => \$help,
if ($help) { usage(); }
unless($url) { printf("must specifiy -url\n\n"); usage(); }
my $job = Bio::EnsEMBL::Hive::URLFactory->fetch($url);
die("Unable to fecth job via url $url\n") unless($job);
unless($job and $job->isa('Bio::EnsEMBL::Hive::AnalysisJob')) {
printf("Unable to fetch job via url: $url\n\n");
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