Chris Roberts ac8ad59823 Provide custom error when attempting to push too many files with FTP
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.
2018-06-26 08:28:01 -07:00

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