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;