Add MID to error message to make it more useful.
authorThomas Hochstein <thh@inter.net>
Sat, 29 May 2021 07:47:17 +0000 (09:47 +0200)
committerThomas Hochstein <thh@inter.net>
Sat, 29 May 2021 07:47:17 +0000 (09:47 +0200)
Signed-off-by: Thomas Hochstein <thh@inter.net>
bin/parsedb.pl

index b4c2056..a5b2ce8 100755 (executable)
@@ -258,9 +258,9 @@ while (my $HeadersR = $DBQuery->fetchrow_hashref) {
                                        split(/ /,'? ' x scalar(@DBFields)))
                                 ));
   $DBWrite->execute(@SQLBindVars)
-      or &Bleat(2,sprintf("Can't write parsed data for %s to %s.%s: ".
+      or &Bleat(2,sprintf("Can't write parsed data for %s to %s.%s for %s: ".
                           "$DBI::errstr\n",$Period,
-                          $Conf{'DBDatabase'},$Conf{'DBTableParse'}));
+                          $Conf{'DBDatabase'},$Conf{'DBTableParse'}, $Headers{'mid'}));
     $DBWrite->finish;
   }
 };
This page took 0.011756 seconds and 4 git commands to generate.