adding file path to error when file can't be opened
authorRogan Hamby <rhamby@equinoxinitiative.org>
Tue, 27 Aug 2019 19:19:41 +0000 (15:19 -0400)
committerRogan Hamby <rhamby@equinoxinitiative.org>
Tue, 27 Aug 2019 19:19:41 +0000 (15:19 -0400)
mig-bin/mig-reporter
mig-xml/excel_mapping_reports.xml

index e7abe33..e281580 100755 (executable)
@@ -178,7 +178,7 @@ $report_file = $MIGGITDIR . $report_file;
 if ($excel_output == 1) {
     $workbook = Excel::Writer::XLSX->new( $report_file );
 } else {
-    open($fh, '>', $report_file) or abort("Could not open output file!");
+    open($fh, '>', $report_file) or abort("Could not open output file $report_file!");
     write_title_page($report_title,$fh,$analyst,$captions_off);
 };
 
index 398ee4b..88b0700 100644 (file)
         <heading>Count.Collection</heading>
         <query>SELECT COUNT(id), l_collection FROM asset_copy_legacy GROUP BY 2 ORDER BY 2;</query>
     </report>
-    
 
-    <name>hz_copybycollection</name>
+       <report>    
+           <name>hz_copybycollection</name>
         <report_title>Copies by Collection</report_title>
         <tag>horizon</tag>
         <iteration>1</iteration>
         <query>SELECT COUNT(id), l_access_if_applicable FROM actor_usr_legacy GROUP BY 2 ORDER BY 2;
         </query>
     </report>
+
     <report>
         <name>rm_actor_comments</name>
         <report_title>Patron Comments</report_title>