Commit b0be6f88 authored by Kieron Taylor's avatar Kieron Taylor 😠
Browse files

[ENSCORESW-1451] Stop logger utility from terminating host process. error()...

[ENSCORESW-1451] Stop logger utility from terminating host process. error() can now be caught via try/catch or eval.
parent a7e6f8ce
......@@ -70,6 +70,7 @@ use POSIX qw(strftime);
use Bio::EnsEMBL::Utils::Argument qw(rearrange);
use Bio::EnsEMBL::Utils::Exception qw(throw);
use Bio::EnsEMBL::Utils::ScriptUtils qw(parse_bytes);
use Carp;
my %level_defs = (
'error' => 1,
......@@ -195,7 +196,7 @@ sub error {
$self->log_generic("\nExiting prematurely.\n\n");
$self->log_generic("Runtime: ".$self->runtime." ".$self->date_and_mem."\n\n");
exit(1);
confess($txt);
}
......
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