Explorar o código

Merge pull request #5 from dylanahsmith/master

Fix typos that cause NameError rather than ConfigFileError to be raised.
Jesse Storimer %!s(int64=13) %!d(string=hai) anos
pai
achega
b8953b22b4
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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