[Jifty-commit] r6949 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Wed May 6 18:40:32 EDT 2009


Author: sartak
Date: Wed May  6 18:40:31 2009
New Revision: 6949

Modified:
   jifty/trunk/lib/Jifty/Record.pm

Log:
Give an actual error message when there's no current user

Modified: jifty/trunk/lib/Jifty/Record.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Record.pm	(original)
+++ jifty/trunk/lib/Jifty/Record.pm	Wed May  6 18:40:31 2009
@@ -442,7 +442,7 @@
     }
 
 
-    Carp::confess unless ( $self->current_user );
+    Carp::confess "No current user" unless ( $self->current_user );
     if (   $self->current_user->is_bootstrap_user
         or $self->current_user->is_superuser )
     {


More information about the Jifty-commit mailing list