Skip to content

Commit

Permalink
Merge pull request #261 from afuna/fail-return-bug4855
Browse files Browse the repository at this point in the history
(Bug 4855) Do not proceed when we fail
  • Loading branch information
afuna committed Feb 13, 2013
2 parents 47506a9 + 9e31b73 commit 8ff5e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgi-bin/DW/Worker/ContentImporter/LiveJournal/Entries.pm
Expand Up @@ -141,7 +141,7 @@ sub try_work {
# No idea what the actual latest entry is. Give up now, tell the user to fix it
unless ( $maxid ) {
$log->( 'Got %d entries but all were DOOO.', scalar @{$last->{events}} );
$fail->( "We weren't able to find your latest entry because you have several entries that are dated out of order (DOOO, or backdated). " .
return $fail->( "We weren't able to find your latest entry because you have several entries that are dated out of order (DOOO, or backdated). " .
"Please edit all the entries on %s that are DOOO and set their date to one that's earlier than your latest non-DOOO entry. " .
"Then try your import again." , $data->{hostname} );
}
Expand Down

0 comments on commit 8ff5e4f

Please sign in to comment.