Ver código fonte

Merge pull request #5 from dylanahsmith/master

Fix typos that cause NameError rather than ConfigFileError to be raised.
Jesse Storimer 13 anos atrás
pai
commit
b8953b22b4
1 arquivos alterados com 3 adições e 3 exclusões
  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