Commit 00a2bbd1 authored by Leo Gordon's avatar Leo Gordon
Browse files

allow standalone jobs to emit warnings

parent 4d4a95f1
......@@ -225,7 +225,11 @@ sub incomplete { # Job should set this to 0 prior to throwing if the
sub warning {
my ($self, $msg) = @_;
$self->adaptor->db->get_JobMessageAdaptor()->register_message($self->dbID, $msg, 0);
if( my $job_adaptor = $self->adaptor ) {
$job_adaptor->db->get_JobMessageAdaptor()->register_message($self->dbID, $msg, 0);
} else {
print STDERR "Warning: $msg\n";
}
}
=head2 dataflow_output_id
......
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