Commit 3a380ea3 authored by rswindell's avatar rswindell
Browse files

Some error reporting.

parent 1f1f694e
......@@ -31,10 +31,16 @@ directory(system.exec_dir + '../xtrn/*', GLOB_ONLYDIR).forEach(function (e) {
const ini = e + '/install-xtrn.ini';
if (!file_exists(ini)) return;
const f = new File(ini);
if (!f.open('r')) return;
if (!f.open('r')) {
alert("Error " + f.error + " opening " + f.name);
return;
}
const xtrn = f.iniGetObject();
f.close();
if(!xtrn.Name) return;
if(!xtrn.Name) {
alert("Skipping file with no 'Name' value: " + f.name);
return;
}
const item = tree.addItem(xtrn.Name, function () {
console.clear(LIGHTGRAY);
js.exec('install-xtrn.js', {}, e);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment