If you are updating Windows 10 and getting an error, then you can use the special SetupDiag tool built into the system, which is used to diagnose various system failures.