mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Exit if nonnexistant profile passed to -P
This commit is contained in:
parent
edef42ec69
commit
7b7ff9c474
|
@ -79,7 +79,10 @@ int main(int argc, char *argv[])
|
|||
Settings::getInstance().setCurrentProfile(profile);
|
||||
}
|
||||
else
|
||||
qWarning() << "Warning: -P profile" << profile + ".tox" << "doesn't exist";
|
||||
{
|
||||
qWarning() << "Error: -P profile" << profile + ".tox" << "doesn't exist";
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
sodium_init(); // For the auto-updater
|
||||
|
|
Loading…
Reference in New Issue
Block a user