From f4c506349ddd3abbe47e13e034fdb63bac554f21 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 28 Jan 2019 21:51:39 +0000
Subject: [PATCH] Forgot to commit this earlier (with tickitcfg.js rev 1.9):
 save() methods return true (on success) or an error string. No throw()'s.

---
 exec/load/fidocfg.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/exec/load/fidocfg.js b/exec/load/fidocfg.js
index 97350eeda9..e24635f3f8 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()
-- 
GitLab