[arch-projects] [devtools] [PATCH] Fix return code handling