projects
/
evergreen-equinox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Protect against errors returned by open-ils.search
[evergreen-equinox.git]
/
Open-ILS
/
src
/
support-scripts
/
authority_control_fields.pl
diff --git
a/Open-ILS/src/support-scripts/authority_control_fields.pl
b/Open-ILS/src/support-scripts/authority_control_fields.pl
index
a7b6b75
..
290d036
100755
(executable)
--- a/
Open-ILS/src/support-scripts/authority_control_fields.pl
+++ b/
Open-ILS/src/support-scripts/authority_control_fields.pl
@@
-395,6
+395,12
@@
foreach my $rec_id (@records) {
# print Dumper($validates);
+ # Protect against failed (error condition) search request
+ if (!$validates) {
+ print STDERR "Search for matching authority failed; record # $rec_id\n";
+ next;
+ }
+
if (scalar(@$validates) == 0) {
next;
}