summaryrefslogtreecommitdiff
path: root/helpcontent2/upload-wiki.pl
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 /helpcontent2/upload-wiki.pl
parent4fe233c4c16c9208c3d011cb725226cbfab84803 (diff)
wikihelp: Don't die when uploading fails, restarting is problematic.
Diffstat (limited to 'helpcontent2/upload-wiki.pl')
-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 7712f0193..e5884436f 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/' );