From 23eb4870247001bf007c354315f6411d8c7ebff6 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 9 Sep 2022 09:41:00 +0100 Subject: [PATCH] quick update to make initial error easier to find if noble not installed --- bin/apploader.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/apploader.js b/bin/apploader.js index cfeefc17e..16fc0c32e 100755 --- a/bin/apploader.js +++ b/bin/apploader.js @@ -15,8 +15,6 @@ var SETTINGS = { pretokenise : true }; var APPSDIR = __dirname+"/../apps/"; -//eval(require("fs").readFileSync(__dirname+"../core/js/utils.js")); -var AppInfo = require("../core/js/appinfo.js"); var noble; try { noble = require('@abandonware/noble'); @@ -29,12 +27,15 @@ if (!noble) { console.log(" npm install @abandonware/noble") console.log("or:") console.log(" npm install noble") + process.exit(1); } function ERROR(msg) { console.error(msg); process.exit(1); } +//eval(require("fs").readFileSync(__dirname+"../core/js/utils.js")); +var AppInfo = require("../core/js/appinfo.js"); global.Const = { /* Are we only putting a single app on a device? If so apps should all be saved as .bootcde and we write info