kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-06-07 12:55 am

[dw-free] Better import logging/error message passthrough

[commit: http://hg.dwscoalition.org/dw-free/rev/052addb14534]

http://bugs.dwscoalition.org/show_bug.cgi?id=1080

Correct grammar in error message.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/DW/Worker/ContentImporter/LiveJournal/Userpics.pm
--------------------------------------------------------------------------------
diff -r b61400ba04b4 -r 052addb14534 cgi-bin/DW/Worker/ContentImporter/LiveJournal/Userpics.pm
--- a/cgi-bin/DW/Worker/ContentImporter/LiveJournal/Userpics.pm	Sun Jun 06 19:04:04 2010 -0500
+++ b/cgi-bin/DW/Worker/ContentImporter/LiveJournal/Userpics.pm	Sun Jun 06 19:54:47 2010 -0500
@@ -112,7 +112,7 @@ sub try_work {
     }
 
     # FIXME: Link to "select userpics later" (once it is created) if we have the backup.
-    my $message = "$num_imported out of $to_import usericon" . ( $num_imported == 1 ? "" : "s" ) . " successfully imported.";
+    my $message = "$num_imported out of $to_import usericon" . ( $to_import == 1 ? "" : "s" ) . " successfully imported.";
     $message = "None of your usericons imported successfully." if $num_imported == 0;
     $message = "There were no usericons to import." if $to_import == 0;
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org