vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[ljcom] r9383: Return detailed error from SUP-RPC on de...

Committer: vsukhanov
Return detailed error from SUP-RPC on dev servers.
U   trunk/cgi-bin/LJ/SUP/RPC/Command.pm
Modified: trunk/cgi-bin/LJ/SUP/RPC/Command.pm
===================================================================
--- trunk/cgi-bin/LJ/SUP/RPC/Command.pm	2010-08-24 07:56:24 UTC (rev 9382)
+++ trunk/cgi-bin/LJ/SUP/RPC/Command.pm	2010-08-24 09:15:39 UTC (rev 9383)
@@ -27,7 +27,7 @@
         if $loaded_commands{ $action };
 
     my $driver = eval { "LJ::SUP::RPC::Command::$action"->new($params) }
-        or die "Action '$action' cannot be performed.\n";
+        or die "Action '$action' cannot be performed." . ($LJ::IS_DEV_SERVER ? " Error: $@" : "\n");
 
     $loaded_commands{ $action } = 1;
     return $driver;

Tags: ljcom, 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