From 412af5542d937cddf0c777c4a03f6c4a2bc0a471 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 5 Mar 2013 20:12:28 -0800 Subject: [PATCH] Improve the port collision error message --- templates/locales/en.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 804a323dd..68ad72d09 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -665,8 +665,11 @@ en: To fix this, modify your current projects Vagrantfile to use another port. Example, where '1234' would be replaced by a unique host port: - config.vm.forward_port %{guest_port}, 1234 + config.vm.network :forwarded_port, guest: %{guest_port}, host: 1234 + Sometimes, Vagrant will attempt to auto-correct this for you. In this + case, Vagrant was unable to. This is usually because the guest machine + is in a state which doesn't allow modifying port forwarding. fixed_collision: |- Fixed port collision for %{guest_port} => %{host_port}. Now on port %{new_port}. forwarding: Forwarding ports...