diff --git a/exec/load/fidocfg.js b/exec/load/fidocfg.js index 97350eeda97be2ebfeef9e07422736ab9fda6006..e24635f3f86dbb68b12cc88b788f13b8ac0115a9 100644 --- a/exec/load/fidocfg.js +++ b/exec/load/fidocfg.js @@ -224,7 +224,7 @@ TickITCfg.prototype.save = function() } if (!tcfg.open(tcfg.exists ? 'r+':'w+')) - throw("Unable to open '"+tcfg.name+"'"); + return "Unable to open '"+tcfg.name+"'"; writesect(null, this.gcfg); sects = tcfg.iniGetSections().map(function(v){return v.toLowerCase();}); @@ -237,6 +237,7 @@ TickITCfg.prototype.save = function() for (i=0; i<sects.length; i++) tcfg.iniRemoveSection(sects[i]); tcfg.close(); + return true; }; /* @@ -329,7 +330,7 @@ FREQITCfg.prototype.save = function() } if (!fcfg.open(fcfg.exists ? 'r+':'w+')) - throw("Unable to open '"+fcfg.name+"'"); + return "Unable to open '"+fcfg.name+"'"; if (this.dirs.length > 0) fcfg.iniSetValue(null, 'Dirs', this.dirs.join(',')); @@ -350,6 +351,7 @@ FREQITCfg.prototype.save = function() for (i=0; i<sects.length; i++) fcfg.iniRemoveSection(sects[i]); fcfg.close(); + return true; }; function BinkITCfg()