aboutsummaryrefslogtreecommitdiff
path: root/sources/wiki
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-09 20:58:00 +0100
committerJochen Topf <jochen@topf.org>2013-01-09 20:58:00 +0100
commitbf125273103ba07d17792ad8aad0bfc102450fdc (patch)
tree0dc61c3cf2650df99b71423a3d1930a2137a2f6c /sources/wiki
parent4b16701a684b3ea7f8443f02312533c8b8527f70 (diff)
downloadtaginfo-bf125273103ba07d17792ad8aad0bfc102450fdc.tar
taginfo-bf125273103ba07d17792ad8aad0bfc102450fdc.tar.gz
Better display of wiki import errors
Diffstat (limited to 'sources/wiki')
-rwxr-xr-xsources/wiki/get_wiki_data.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/wiki/get_wiki_data.rb b/sources/wiki/get_wiki_data.rb
index fa71ec3..35600bb 100755
--- a/sources/wiki/get_wiki_data.rb
+++ b/sources/wiki/get_wiki_data.rb
@@ -276,8 +276,8 @@ File.open(dir + '/tagpages.list') do |wikipages|
if !ititle.nil? && ititle.match(%r{^(file|image):(.*)$}i)
page.image = "File:#{$2}"
else
- puts "invalid image: #{reason} #{page.title} #{ititle}"
- db.execute('INSERT INTO invalid_image_titles (reason, page_title, image_title) VALUES (?, ?, ?)', reason, page.title, ititle)
+ puts "invalid image: page='#{page.title}' image='#{ititle}'"
+ db.execute('INSERT INTO invalid_image_titles (page_title, image_title) VALUES (?, ?)', page.title, ititle)
page.image = ''
end
end