Skip to content
Snippets Groups Projects
Commit b2cae78f authored by Jessica Severin's avatar Jessica Severin
Browse files

added more messages for fail cases

parent 01961b14
No related branches found
No related tags found
No related merge requests found
......@@ -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");
usage();
}
$job->print_job;
$job->update_status('READY');
......
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