[PATCH] fix incorrect handling of config command failure