code: func FailOnError(err error, msg string) {
  	if err != nil {
  		msg := fmt.Sprintf("%s: %s", msg, err)
  		Fail(msg)
  	}
  }
docs: // FailOnError exits and prints an error message, but only if we encountered
  // a problem and err != nil