From ca2274dcf571597ffa65d071c27a53cf8c0d60f1 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Fri, 24 Apr 2015 16:54:25 -0600 Subject: [PATCH] * Not much. Will start on DEMO mode for View development, etc. --- core/config.js | 1 + core/logger.js | 6 +++++- mods/art/DEMOMAIN.ANS | Bin 0 -> 178 bytes mods/menu.json | 15 +++++++++++++++ 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 mods/art/DEMOMAIN.ANS diff --git a/core/config.js b/core/config.js index 935aa5f8..49f9d103 100644 --- a/core/config.js +++ b/core/config.js @@ -77,6 +77,7 @@ function getDefaultConfig() { preLoginTheme : '*', + // :TODO: change to nua users : { usernameMin : 2, usernameMax : 22, diff --git a/core/logger.js b/core/logger.js index 81b41f81..5ad445ec 100644 --- a/core/logger.js +++ b/core/logger.js @@ -23,7 +23,11 @@ module.exports = { logPathError = logPath + ' is not a directory!'; } } catch(e) { - logPathError = e.message; + if('ENOENT' === e.code) { + logPathError = 'No such file or directory: ' + logPath; + } else { + logPathError = e.message; + } } if(logPathError) { diff --git a/mods/art/DEMOMAIN.ANS b/mods/art/DEMOMAIN.ANS new file mode 100644 index 0000000000000000000000000000000000000000..ea311ab2e3f8bc8f54f1bbdb7af7e56a02c9e7bf GIT binary patch literal 178 zcmb1+Hn27^ur@Z&<>i7w>1ZPhXVoxYL+NP4Tvh346O&vB&j6@MD%dg9+10>6fqKBm iz|hpd#K^>ufq{XMF@S*$NCSber<1Qjn7bo{2PXk79~j*L literal 0 HcmV?d00001 diff --git a/mods/menu.json b/mods/menu.json index e1d5eb95..a12fc0e2 100644 --- a/mods/menu.json +++ b/mods/menu.json @@ -153,5 +153,20 @@ // :TODO: implement MCI codes for this "cls" : true } + }, + "demoMain" : { + "art" : "DEMOMAIN", + "options" : { "cls" : true }, + "form" : { + "0" : { + "VM1" : { + "mci" : { + "VM1" : { + "items" : [ "Views" ] + } + } + } + } + } } } \ No newline at end of file