Commit 03b9a9e2 by Steve Strassmann

tweak file reference

parent 138e0569
...@@ -513,7 +513,7 @@ end ...@@ -513,7 +513,7 @@ end
# Make sure config file with username/password exists # Make sure config file with username/password exists
# Returns boolean: returns true if file exists and is nonzero length # Returns boolean: returns true if file exists and is nonzero length
def validate_transifex_config() def validate_transifex_config()
config_file = Dir.home + "/.transifexrc" config_file = "#{Dir.home}/.transifexrc"
if !File.file?(config_file) or File.size(config_file)==0 if !File.file?(config_file) or File.size(config_file)==0
raise "Cannot connect to Transifex, config file is missing or empty: #{config_file}\n" + raise "Cannot connect to Transifex, config file is missing or empty: #{config_file}\n" +
"See http://help.transifex.com/features/client/#transifexrc\n" "See http://help.transifex.com/features/client/#transifexrc\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment