Use friendly error message instead of telling the user about the object 
reference.

        Patch by alierak. 

diffs (11 lines):

diff -r 4e386904e1d0 -r 86a6d882516c htdocs/editpics.bml
--- a/htdocs/editpics.bml       Thu May 07 07:03:36 2009 +0000
+++ b/htdocs/editpics.bml       Thu May 07 07:07:10 2009 +0000
@@ -269,6 +269,7 @@ use strict;
                 } else {
                     my $userpic = eval { LJ::Userpic->create($u, data => 
$current_upload{image}); };
                     if (!$userpic) {
+                        $@ = $...@->as_html if $...@->isa('LJ::Error');
                         push @info, $message_prefix . "$@";
                         $no_errors = 0;
                     } else {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to