diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-09 20:58:00 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-09 20:58:00 +0100 |
commit | bf125273103ba07d17792ad8aad0bfc102450fdc (patch) | |
tree | 0dc61c3cf2650df99b71423a3d1930a2137a2f6c /sources/wiki | |
parent | 4b16701a684b3ea7f8443f02312533c8b8527f70 (diff) | |
download | taginfo-bf125273103ba07d17792ad8aad0bfc102450fdc.tar taginfo-bf125273103ba07d17792ad8aad0bfc102450fdc.tar.gz |
Better display of wiki import errors
Diffstat (limited to 'sources/wiki')
-rwxr-xr-x | sources/wiki/get_wiki_data.rb | 4 |
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 |