When the configured directory for FTP push has too many files, it will generate an exception and fail due to a stack overflow. When this happens just rescue out the exception and re-raise a custom error to provide some context to the user on the actual problem.
14 lines
257 B
Ruby
14 lines
257 B
Ruby
module VagrantPlugins
|
|
module FTPPush
|
|
module Errors
|
|
class Error < Vagrant::Errors::VagrantError
|
|
error_namespace("ftp_push.errors")
|
|
end
|
|
|
|
class TooManyFiles < Error
|
|
error_key(:too_many_files)
|
|
end
|
|
end
|
|
end
|
|
end
|