checkError
checkError(written != 16, "failed to write partition entry");
checkError(written != 4, "failed to make image bootable");
checkError(sCopyBuffer == NULL, "no memory for copy buffer");
checkError(outputFileHandle < 0, "failed to open output file");
checkError(isoFileHandle < 0, "failed to open ISO file");
checkError(result != 0, "failed to stat ISO file");
checkError(biosFileHandle < 0, "failed to open BIOS bootloader file");
checkError(efiFileHandle < 0, "failed to open EFI bootloader file");
checkError(result != 0, "failed to stat EFI filesystem image");
checkError(imageFileHandle < 0, "failed to open image file");
checkError(result != 0, "failed to stat image file");
checkError(result != 0, "failed to copy iso file to output");
checkError(result != 0, "failed to copy image file to output");
checkError(result != 0, "failed to copy BIOS bootloader to output");
checkError(result != 0, "failed to copy EFI filesystem image to output");
checkError(written != 16, "failed to write partition entry");
checkError(written != 4, "failed to make partition bootable");
checkError(partIndex < 0 || partIndex > 3,
checkError(partType < 0, "Incorrect Partition Type!");
checkError((partStartOffset + partLength) > 2089072000000,
checkError(imageFileHandle < 0, "failed to open disk image file");
checkError(result != 0, "failed to stat image file");
checkError(read < 0, "failed to read MBR for validation");