better debugging if things go awry
[freeside.git] / FS / FS / reason.pm
index 3c925d4..5ce1848 100644 (file)
@@ -153,7 +153,7 @@ sub _upgrade_data {  # class method
 
       foreach (@sql) {
         my $sth = $dbh->prepare($_) or die $dbh->errstr;
-        $sth->execute or die $dbh->errstr;
+        $sth->execute or die $sth->errstr;
       }
     }
   }