af-main: report error status in afm-install