VBOX: Add some text to atderr about the incompatible version of VirtualBox.

This commit is contained in:
Rom Walton 2013-04-24 15:05:32 -04:00
parent b19d1ea85f
commit 2871721c90
1 changed files with 5 additions and 0 deletions

View File

@ -455,6 +455,11 @@ int main(int argc, char** argv) {
// NOTE: Incompatible in this case means that VirtualBox 4.2.6 crashes during snapshot operations
//
if (vm.virtualbox_version.find("4.2.6r") != std::string::npos) {
fprintf(
stderr,
"%s Incompatible version of VirtualBox detected. Please upgrade to a later version.\n",
vboxwrapper_msg_prefix(buf, sizeof(buf))
);
boinc_temporary_exit(86400, "Incompatible version of VirtualBox detected.");
}