adding error details
authorPaul Poulain <paul.poulain@biblibre.com>
Thu, 12 Nov 2009 14:55:56 +0000 (15:55 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 17 Nov 2009 15:27:12 +0000 (16:27 +0100)
misc/migration_tools/bulkmarcimport.pl

index b1c2340..e4f7dba 100755 (executable)
@@ -314,7 +314,7 @@ RECORD: while (  ) {
             ## An authid is defined but no authority in database : add
                 eval { ( $authid ) = AddAuthority($record,$authid, $authtypecode) };
                 if ($@){
-                    warn "Problem with authority $authid Cannot Add";
+                    warn "Problem with authority $authid Cannot Add ".$@;
                                        printlog({id=>$originalid||$id||$authid, op=>"insert",status=>"ERROR"}) if ($logfile);
                 }
                                else{
@@ -325,7 +325,7 @@ RECORD: while (  ) {
             ## True insert in database
                 eval { ( $authid ) = AddAuthority($record,"", $authtypecode) };
                 if ($@){
-                    warn "Problem with authority $authid Cannot Add";
+                    warn "Problem with authority $authid Cannot Add".$@;
                                        printlog({id=>$originalid||$id||$authid, op=>"insert",status=>"ERROR"}) if ($logfile);
                 }
                                else{