echo error code when build failed