Unreal build tool fail: unknown error

So I finished making a multiplayer game with the online steam subsystem. But when I go to package it I keep getting this error with the build tool.

Looking at the log I noted that it said errors can occur from previous versions of visual studio. So I opened the visual studio installer and updated it. It worked after that.