Bug 23432: Replace 'die' with 'warn'

This patch simply replaced the die statement with a warn such that the
cron script may continue to rotate other items even if this item cannot
be properly rotated due to corrupt data.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2020-09-23 12:28:22 +01:00 committed by Jonathan Druart
parent 7e66d6d190
commit 6adb1891d2
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ sub needs_advancing {
return 0;
}
} else {
die "We have no historical branch transfer; this should not have happened!";
warn "We have no historical branch transfer for itemnumber " . $self->itemnumber->itemnumber . "; This should not have happened!";
}
}