From 549f1b9e689ec476728d1c92b001bf696d5d1173 Mon Sep 17 00:00:00 2001 From: hartator Date: Thu, 10 Sep 2015 00:43:21 -0500 Subject: [PATCH] Clarify error variable names --- lib/wayback_machine_downloader.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index 1b9a719..05728cb 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -112,11 +112,11 @@ class WaybackMachineDownloader error_to_string = e.to_s puts "# #{error_to_string}" 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 - " - file_already_existing = e.to_s.split("File exists - ")[-1] + file_already_existing = error_to_string.split("File exists - ")[-1] else - raise "Unhandled directory restructure # #{error_to_string}" + raise "Unhandled directory restructure error # #{error_to_string}" end file_already_existing_temporary = file_already_existing + '.temp' file_already_existing_permanent = file_already_existing + '/index.html'