[arch-projects] [mkinitcpio][PATCH 04/19] refactor error tracking in build hooks