code: func wrapAsPluginError(err error, msg string) error {
  	return &pluginError{cause: errors.Wrap(err, msg)}
  }
docs: // wrapAsPluginError wraps an error in a pluginError with an
  // additional message, analogous to errors.Wrapf.