mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
vbox6: print error in case machine powerup fails
Retrieve error message (best effort and might fail) from progress information. issue #4666
This commit is contained in:
parent
8bd548416d
commit
852d21db14
@ -335,6 +335,15 @@ struct Main : Event_handler
|
||||
|
||||
if (state != MachineState_Running) {
|
||||
error("machine could not enter running state");
|
||||
|
||||
/* retrieve and print error information */
|
||||
IVirtualBoxErrorInfo *info;
|
||||
progress->COMGETTER(ErrorInfo)(&info);
|
||||
|
||||
PRUnichar *text = (PRUnichar *)malloc(4096);
|
||||
info->GetText((PRUnichar **)&text);
|
||||
Genode::log("Error: ", Utf8Str(text).c_str());
|
||||
|
||||
throw Fatal();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user