Arch Linux: fix error checking