mirror of
https://github.com/ksherlock/ample.git
synced 2025-02-15 13:34:02 +00:00
print a descriptive error message when vmnet_helper fails.
This commit is contained in:
parent
5dd04cd3b7
commit
5fbc00e375
@ -277,7 +277,15 @@ void vm_startup(void) {
|
||||
dispatch_semaphore_wait(sem, DISPATCH_TIME_FOREVER);
|
||||
interface = NULL;
|
||||
}
|
||||
errx(1,"vmnet_start_interface failed");
|
||||
warnx("vmnet_start_interface failed");
|
||||
if (geteuid() != 0) {
|
||||
fputs(
|
||||
"\n\n"
|
||||
"\tvmnet_helper must be run as root.\n"
|
||||
"\tGo to Ample -> Preferences and Fix VMNet Permissions.\n\n"
|
||||
,stderr);
|
||||
}
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user