[Affelio-cvs 959] CVS update: affelio/lib/Affelio/Managing

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 12月 19日 (月) 16:17:15 JST


Index: affelio/lib/Affelio/Managing/AccessLogManager.pm
diff -u affelio/lib/Affelio/Managing/AccessLogManager.pm:1.10 affelio/lib/Affelio/Managing/AccessLogManager.pm:1.11
--- affelio/lib/Affelio/Managing/AccessLogManager.pm:1.10	Mon Dec 19 16:10:20 2005
+++ affelio/lib/Affelio/Managing/AccessLogManager.pm	Mon Dec 19 16:17:15 2005
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: AccessLogManager.pm,v 1.10 2005/12/19 07:10:20 slash5234 Exp $
+# $Id: AccessLogManager.pm,v 1.11 2005/12/19 07:17:15 slash5234 Exp $
 
 package Affelio::Managing::AccessLogManager;
 {
@@ -163,7 +163,7 @@
 	}
 
 	if($type eq "f1"){
-	    try{
+	    eval{
 		$af->getFM->set_attribute_by_afid($afid,
 						  "last_access",
 				  Affelio::misc::Time::get_timestamp()
@@ -172,9 +172,9 @@
 		$af->getFM->incr_attribute_by_afid($afid,
 						   "count_access");
 
-	    }catch Error with{
-		my $e = shift;
-		throw Affelio::exception::DBException($e);
+	    };
+	    if($@){
+		throw Affelio::exception::DBException($af->getDB()->errstr);
 	    };
 	}
 


Affelio-cvs メーリングリストの案内
Back to archive index