瀏覽代碼

Merge pull request #5 from dylanahsmith/master

Fix typos that cause NameError rather than ConfigFileError to be raised.
Jesse Storimer 13 年之前
父節點
當前提交
b8953b22b4
共有 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