From c12ec0016cd30952749282401998b37474dafdd1 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 20 Feb 2006 14:01:59 +0000 Subject: [PATCH] Wenn beim Login das Datenbankupgrade fehlschlaegt, dann sollte die Fehlermeldung auch ausgegeben werden. --- SL/User.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/User.pm b/SL/User.pm index fbc022357..c35ff0e91 100644 --- 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:
${query}
" . + "The error message was: ${errstr}
" . "All changes in that file have been reverted."); } $sth->finish(); -- 2.20.1