projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c13a44
)
Wenn beim Login das Datenbankupgrade fehlschlaegt, dann sollte die Fehlermeldung...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 20 Feb 2006 14:01:59 +0000
(14:01 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 20 Feb 2006 14:01:59 +0000
(14:01 +0000)
SL/User.pm
patch
|
blob
|
history
diff --git
a/SL/User.pm
b/SL/User.pm
index
fbc0223
..
c35ff0e
100644
(file)
--- a/
SL/User.pm
+++ b/
SL/User.pm
@@
-432,9
+432,11
@@
sub process_query {
$sth = $dbh->prepare($query);
if (!$sth->execute()) {
+ my $errstr = $dbh->errstr;
$sth->finish();
$dbh->rollback();
$form->dberror("The database update/creation did not succeed. The file ${filename} containing the following query failed:<br>${query}<br>" .
+ "The error message was: ${errstr}<br>" .
"All changes in that file have been reverted.");
}
$sth->finish();