mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-18 02:06:35 +00:00
Clarify error variable names
This commit is contained in:
parent
b81c6950f2
commit
549f1b9e68
@ -112,11 +112,11 @@ class WaybackMachineDownloader
|
|||||||
error_to_string = e.to_s
|
error_to_string = e.to_s
|
||||||
puts "# #{error_to_string}"
|
puts "# #{error_to_string}"
|
||||||
if error_to_string.include? "File exists @ dir_s_mkdir - "
|
if error_to_string.include? "File exists @ dir_s_mkdir - "
|
||||||
file_already_existing = e.to_s.split("File exists @ dir_s_mkdir - ")[-1]
|
file_already_existing = error_to_string.split("File exists @ dir_s_mkdir - ")[-1]
|
||||||
elsif error_to_string.include? "File exists - "
|
elsif error_to_string.include? "File exists - "
|
||||||
file_already_existing = e.to_s.split("File exists - ")[-1]
|
file_already_existing = error_to_string.split("File exists - ")[-1]
|
||||||
else
|
else
|
||||||
raise "Unhandled directory restructure # #{error_to_string}"
|
raise "Unhandled directory restructure error # #{error_to_string}"
|
||||||
end
|
end
|
||||||
file_already_existing_temporary = file_already_existing + '.temp'
|
file_already_existing_temporary = file_already_existing + '.temp'
|
||||||
file_already_existing_permanent = file_already_existing + '/index.html'
|
file_already_existing_permanent = file_already_existing + '/index.html'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user