From 1c72e771064b49dadc27686c74ca973e02135e31 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 21 May 2015 08:14:40 +0100 Subject: [PATCH] Add warning if required client-server plugins are missing --- core/modules/commands/server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/modules/commands/server.js b/core/modules/commands/server.js index a25b200cf..6caf2fefb 100644 --- a/core/modules/commands/server.js +++ b/core/modules/commands/server.js @@ -300,6 +300,10 @@ Command.prototype.execute = function() { this.server.listen(port,host); console.log("Serving on " + host + ":" + port); console.log("(press ctrl-C to exit)"); + // Warn if required plugins are missing + if($tw.boot.wikiInfo.plugins.indexOf("tiddlywiki/tiddlyweb") === -1 || $tw.boot.wikiInfo.plugins.indexOf("tiddlywiki/filesystem") === -1) { + $tw.utils.warning("Warning: Plugins required for client-server operation (\"tiddlywiki/filesystem\" and \"tiddlywiki/tiddlyweb\") are missing from tiddlywiki.info file"); + } return null; };