RT# 83122 Fix update tool to properly display caught error
authorMitch Jackson <mitch@freeside.biz>
Mon, 27 May 2019 21:32:29 +0000 (17:32 -0400)
committerMitch Jackson <mitch@freeside.biz>
Mon, 27 May 2019 21:49:02 +0000 (17:49 -0400)
FS/bin/freeside-wa-tax-table-update

index ad14687..b197ac8 100755 (executable)
@@ -106,8 +106,8 @@ $log->info('Begin wa_tax_rate_update');
   };
 
   if ( $@ ) {
-    $log->error( "Error: $@" );
     warn "Error: $@\n";
+    $log->error( "Error: $@" );
   } else {
     $log->info( 'Finished wa_tax_rate_update' );
     warn "Finished wa_tax_rate_update\n";