Zsh completion for pamac pollutes command line with error

Not sure if this is an issue of zsh or zsh-completion or pamac or Manjaro who wraps them, so I’m reporting it here …

Steps to reproduce:

  1. install some packages from aur with pamac install
  2. cut off internet connections
  3. type sudo pamac remove , then press tab

What happens:

  • an error message is dumped just after the cursor: Failed to query https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=(...the aur packages just installed)

Expected behavior:

  • nothing happens if no completion is found