Просмотр исходного кода

Fix typos that cause NameError rather than ConfigFileError to be raised.

Dylan Smith 13 лет назад
Родитель
Сommit
5302b8ea01
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      lib/shopify_api/cli.rb

+ 3 - 3
lib/shopify_api/cli.rb

@@ -84,7 +84,7 @@ module ShopifyAPI
           remove_file(default_symlink)
           `ln -s #{target} #{default_symlink}`
         else
-          no_config_file_error(file)
+          no_config_file_error(target)
         end
       end
       if File.exist?(default_symlink)
@@ -155,7 +155,7 @@ module ShopifyAPI
     end
     
     def no_config_file_error(filename)
-      raise ConfigFileError, "There is no config file at #{file}"
+      raise ConfigFileError, "There is no config file at #{filename}"
     end
   end
-end
+end