From f032cfcd79fb51980fe97f07213050534a6ff265 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Mon, 25 Apr 2005 22:36:55 +0000 Subject: [PATCH] Fixing fatalError method calls --- lib/WebGUI/SQL.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/SQL.pm b/lib/WebGUI/SQL.pm index 3a1385db8..3b103d34c 100644 --- a/lib/WebGUI/SQL.pm +++ b/lib/WebGUI/SQL.pm @@ -443,7 +443,7 @@ sub prepare { if ($WebGUI::Session::session{setting}{showDebug}) { push(@{$WebGUI::Session::session{SQLquery}},$sql); } - my $sth = $dbh->prepare($sql) or WebGUI::ErrorHandler::fatalError("Couldn't prepare statement: ".$sql." : ". DBI->errstr); + my $sth = $dbh->prepare($sql) or WebGUI::ErrorHandler::fatal("Couldn't prepare statement: ".$sql." : ". DBI->errstr); bless ({_sth => $sth, _sql => $sql}, $class); } @@ -811,7 +811,7 @@ sub write { if ($WebGUI::Session::session{setting}{showDebug}) { push(@{$WebGUI::Session::session{SQLquery}},$sql); } - $dbh->do($sql) or WebGUI::ErrorHandler::fatalError("Couldn't write to the database: ".$sql." : ". DBI->errstr); + $dbh->do($sql) or WebGUI::ErrorHandler::fatal("Couldn't write to the database: ".$sql." : ". DBI->errstr); }