]> git.mxchange.org Git - flightgear.git/blobdiff - src/Systems/electrical.cxx
TACAN: fix distance calculations and some other problems.
[flightgear.git] / src / Systems / electrical.cxx
index 947df0aae21df1be1bcdc2bc84d060b7ce642e92..ebe684cc985975b2eea5b9acda5ba002d0a50c45 100644 (file)
@@ -386,13 +386,7 @@ void FGElectricalSystem::init () {
             if ( build(config_props) ) {
                 enabled = true;
             } else {
-                SG_LOG( SG_SYSTEMS, SG_ALERT,
-                        "Detected a logic error in the electrical system ");
-                SG_LOG( SG_SYSTEMS, SG_ALERT,
-                        "specification file.  See earlier errors for " );
-                SG_LOG( SG_SYSTEMS, SG_ALERT,
-                        "details.");
-                exit(-1);
+                throw sg_exception("Logic error in electrical system file.");
             }        
         } catch (const sg_exception&) {
             SG_LOG( SG_SYSTEMS, SG_ALERT,