projects
/
docbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10e0467
)
- clean up database class a bit
author
Andreas Scherbaum
<andreas@scherbaum.biz>
Thu, 21 Jun 2012 20:52:39 +0000
(22:52 +0200)
committer
Andreas Scherbaum
<andreas@scherbaum.biz>
Thu, 21 Jun 2012 20:52:39 +0000
(22:52 +0200)
db.pm
patch
|
blob
|
blame
|
history
diff --git
a/db.pm
b/db.pm
index 7265f5186653cd94dd8ec19f3db913fd577f881e..2013cdec7c9b9aa92a740562db282bfafa2c6627 100644
(file)
--- a/
db.pm
+++ b/
db.pm
@@
-146,7
+146,7
@@
sub open_db_connection {
);
unless ($dbh) {
- main::print_msg("Can't connect to database - $DBI::errstr
\n
", ERROR);
+ main::print_msg("Can't connect to database - $DBI::errstr", ERROR);
return 0;
}
@@
-238,7
+238,7
@@
sub verify_tables {
my $st = $main::db->query($query);
if (!defined($st)) {
- main::print_msg("Can't execute query - $DBI::errstr
\n
", ERROR);
+ main::print_msg("Can't execute query - $DBI::errstr", ERROR);
return 0;
}