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

17 lines
663 B
YAML

en:
ftp_push:
errors:
missing_attribute: |-
Missing required attribute '%{attribute}'. The Vagrant FTP Push plugin
requires you set this attribute. Please set this attribute in your
Vagrantfile, for example:
config.push.define "ftp" do |push|
push.%{attribute} = "..."
end
too_many_files: |-
The configured directory for Vagrant FTP push contains too many files
to successfully complete the command. This can be resolved by either
removing extraneous files from the configured directory, or updating
the `dir` configuration option to a subdirectory.