PatchworkLauncher.LaunchManager.Command_Display_Patching_Error C# (CSharp) Method

Command_Display_Patching_Error() private method

private Command_Display_Patching_Error ( PatchingProcessException ex ) : void
ex PatchingProcessException
return void
		private void Command_Display_Patching_Error(PatchingProcessException ex) {
			var targetFile = ex.TargetFile;
			var thePatch = ex.AssociatedInstruction?.Name;
			var objectsThatFailed = "";
			if (targetFile != null && thePatch != null) {
				objectsThatFailed = $"{thePatch} ⇒ {targetFile}";
			} else if (targetFile != null) {
				objectsThatFailed = targetFile;
			}
			var tryingToDoWhat = ex.Step.GetEnumValueText() ?? "Patch a file";
			Command_Display_Error(tryingToDoWhat, objectsThatFailed, ex.InnerException);
		}