[pacman-dev] [PATCH] pacman_query: move error messages into relevant if statements