Skip to content

Commit

Permalink
An error is logged when the target config cannot be updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
kelseyhightower committed Nov 1, 2013
1 parent ae880ef commit a0e3589
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion template_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ func (t *TemplateResource) sync() error {
return errors.New("Config check failed: " + err.Error())
}
}
os.Rename(staged, t.Dest)
if err := os.Rename(staged, t.Dest); err != nil {
return err
}
if t.ReloadCmd != "" {
if err := t.reload(); err != nil {
return err
Expand Down

0 comments on commit a0e3589

Please sign in to comment.