- Timestamp:
- Aug 28, 2018 8:32:09 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp
r73929 r73932 891 891 // returns pBootableMedium if there are no diff images 892 892 rc = ptrSourceDisk->COMGETTER(Base)(pBootableBaseMedium.asOutParam()); 893 if (FAILED(rc)) 893 if (FAILED(rc)) 894 894 throw rc; 895 895 … … 908 908 Log(("Finding disk \"%s\"\n", path.c_str())); 909 909 rc = mVirtualBox->i_findHardDiskByLocation(path, true , &ptrSourceDisk); 910 if (FAILED(rc)) 910 if (FAILED(rc)) 911 911 throw rc; 912 912 … … 920 920 if (vsdescThis->i_findByType(VirtualSystemDescriptionType_HardDiskImage).empty()) 921 921 { 922 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 922 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 923 923 tr("Strange, but nothing to export to OCI after preparation steps")); 924 924 } … … 938 938 939 939 if (aLocInfo.strPath.isEmpty()) 940 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 940 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 941 941 tr("OCI: Cloud user profile wasn't found")); 942 942 … … 948 948 vsdescThis->i_findByType(VirtualSystemDescriptionType_CloudOCIInstanceShape); 949 949 if (shapeId.empty()) 950 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 950 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 951 951 tr("OCI: Shape of instance wasn't found")); 952 952 … … 957 957 vsdescThis->i_findByType(VirtualSystemDescriptionType_CloudOCIDomain); 958 958 if (domainName.empty()) 959 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 959 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 960 960 tr("OCI: Available domain wasn't found")); 961 961 … … 966 966 vsdescThis->i_findByType(VirtualSystemDescriptionType_CloudOCIBootDiskSize); 967 967 if (bootDiskSize.empty()) 968 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 968 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 969 969 tr("OCI: Boot disk size wasn't found")); 970 970 … … 975 975 vsdescThis->i_findByType(VirtualSystemDescriptionType_CloudOCIBucket); 976 976 if (bucketId.empty()) 977 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 977 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 978 978 tr("OCI: Bucket wasn't found")); 979 979 … … 984 984 vsdescThis->i_findByType(VirtualSystemDescriptionType_CloudOCIVCN); 985 985 if (vcn.empty()) 986 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 986 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 987 987 tr("OCI: VCN wasn't found")); 988 988 … … 993 993 vsdescThis->i_findByType(VirtualSystemDescriptionType_CloudOCIPublicIP); 994 994 if (publicIP.empty()) 995 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 995 throw rc = setError(VBOX_E_OBJECT_NOT_FOUND, 996 996 tr("OCI: Public IP setting wasn't found")); 997 997
Note:
See TracChangeset
for help on using the changeset viewer.