more explicit message

This commit is contained in:
Rémi Jouannet 2018-11-09 14:44:34 +01:00
parent 0eaaa7de48
commit 118a9cb8c6
1 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ func (u *Ui) Ask(query string) (result string, err error) {
func (u *Ui) Error(message string) { func (u *Ui) Error(message string) {
if err := u.client.Call("Ui.Error", message, new(interface{})); err != nil { if err := u.client.Call("Ui.Error", message, new(interface{})); err != nil {
log.Printf("Error in Ui RPC call: %s", err) log.Printf("Error in Ui.Error RPC call: %s", err)
} }
} }
@ -48,25 +48,25 @@ func (u *Ui) Machine(t string, args ...string) {
} }
if err := u.client.Call("Ui.Machine", rpcArgs, new(interface{})); err != nil { if err := u.client.Call("Ui.Machine", rpcArgs, new(interface{})); err != nil {
log.Printf("Error in Ui RPC call: %s", err) log.Printf("Error in Ui.Machine RPC call: %s", err)
} }
} }
func (u *Ui) Message(message string) { func (u *Ui) Message(message string) {
if err := u.client.Call("Ui.Message", message, new(interface{})); err != nil { if err := u.client.Call("Ui.Message", message, new(interface{})); err != nil {
log.Printf("Error in Ui RPC call: %s", err) log.Printf("Error in Ui.Message RPC call: %s", err)
} }
} }
func (u *Ui) Say(message string) { func (u *Ui) Say(message string) {
if err := u.client.Call("Ui.Say", message, new(interface{})); err != nil { if err := u.client.Call("Ui.Say", message, new(interface{})); err != nil {
log.Printf("Error in Ui RPC call: %s", err) log.Printf("Error in Ui.Say RPC call: %s", err)
} }
} }
func (u *Ui) ProgressBar() packer.ProgressBar { func (u *Ui) ProgressBar() packer.ProgressBar {
if err := u.client.Call("Ui.ProgressBar", new(interface{}), new(interface{})); err != nil { if err := u.client.Call("Ui.ProgressBar", new(interface{}), new(interface{})); err != nil {
log.Printf("Error in Ui RPC call: %s", err) log.Printf("Error in Ui.ProgressBar RPC call: %s", err)
} }
return u // Ui is also a progress bar !! return u // Ui is also a progress bar !!
} }