can those messages in case of errors be on the script?
On Sat, Aug 16, 2014 at 8:26 AM, Harish Patel <[email protected]> wrote: > Tried something like before but the 'puts' statement is only run at the > very beggining of 'vagrant up', not when the actual provisioner is run. In > this case, I want to print a message so the user knows that the shell file > failed. > > config.vm.provision "shell" do |s| > begin > s.path = "#{SCRIPTS}/#{CONFIGURE_SETTINGS}" > s.args = "#{USER} #{PW}" > rescue > puts "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!AN ERROR > REACHED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" > end > end > > -- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
