summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2011-01-20 18:41:23 +0100
committerJan Holesovsky <kendy@suse.cz>2011-01-20 18:41:23 +0100
commit3dc3d8246b752f8dac8579a562c857b2023a0ad2 (patch)
tree39977476bb925ea69f141861b20cbce0c8bbe679
parent4fe233c4c16c9208c3d011cb725226cbfab84803 (diff)
wikihelp: Don't die when uploading fails, restarting is problematic.
-rwxr-xr-xhelpcontent2/upload-wiki.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpcontent2/upload-wiki.pl b/helpcontent2/upload-wiki.pl
index 7712f01932..e5884436fc 100755
--- a/helpcontent2/upload-wiki.pl
+++ b/helpcontent2/upload-wiki.pl
@@ -128,7 +128,7 @@ sub upload_article {
$mw->edit( {
action => 'edit',
title => $pagename,
- text => $text }, { skip_encoding => 1 } ) || die $mw->{error}->{code} . ': ' . $mw->{error}->{details};
+ text => $text }, { skip_encoding => 1 } ) || print 'Error: ' . $mw->{error}->{code} . ': ' . $mw->{error}->{details} . '\n';
}
File::Find::find( {wanted => \&upload_article}, 'wiki/' );