Merge pull request #71 from statonjr/patch-1

Fix ArgumentError in SFTP
This commit is contained in:
Karl Freeman 2014-08-08 09:09:05 +01:00
commit 359f7d7431

View file

@ -27,7 +27,7 @@ module Middleman
protected
def handle_exception(exception)
def handle_exception(exception,filename, file_path)
reply = exception.message
err_code = reply[0,3].to_i
@ -52,7 +52,7 @@ module Middleman
begin
sftp.upload(filename, file_path)
rescue Exception => exception
handle_exception(exception, file_path)
handle_exception(exception, filename, file_path)
end
puts "Copied #{filename}"