vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r16175: LJSUP-5445: die of errors with stack bac...

Committer: vsukhanov
LJSUP-5445: die of errors with stack backtrace when used non-initialized LJ::Request
U   trunk/cgi-bin/LJ/Request/Apache.pm
Modified: trunk/cgi-bin/LJ/Request/Apache.pm
===================================================================
--- trunk/cgi-bin/LJ/Request/Apache.pm	2010-01-29 10:19:48 UTC (rev 16174)
+++ trunk/cgi-bin/LJ/Request/Apache.pm	2010-01-29 10:43:51 UTC (rev 16175)
@@ -1,6 +1,7 @@
 package LJ::Request::Apache;
 use strict;
 
+use Carp qw//;
 use Apache::Constants;
 #*OK        = \&Apache::Constants::OK;
 #*DONE      = \&Apache::Constants::DONE;
@@ -31,7 +32,7 @@
 my $instance = '';
 sub LJ::Request::request { $instance }
 sub LJ::Request::r {
-    die "Request is not provided to LJ::Request" unless $instance;
+    Carp::confess("Request is not provided to LJ::Request") unless $instance;
     return $instance->{r};
 }
 

Tags: livejournal, pm, vadvs
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments