mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-04 04:45:36 -04:00
[calamares] Bail out on invalid settings
This commit is contained in:
parent
d81d585c32
commit
c8964717c7
1 changed files with 5 additions and 0 deletions
|
@ -166,6 +166,11 @@ main( int argc, char* argv[] )
|
|||
#endif
|
||||
|
||||
Calamares::Settings::init( is_debug );
|
||||
if ( !Calamares::Settings::instance() || !Calamares::Settings::instance()->isValid() )
|
||||
{
|
||||
qCritical() << "Calamares has invalid settings, shutting down.";
|
||||
return 78; // EX_CONFIG on FreeBSD
|
||||
}
|
||||
a.init();
|
||||
return a.exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue