mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
Add warning when serving a non-existent wiki folder
The warning will be yellow to make it noticeable
This commit is contained in:
parent
5d600ce31b
commit
e62e38d66c
@ -278,6 +278,9 @@ var Command = function(params,commander,callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Command.prototype.execute = function() {
|
Command.prototype.execute = function() {
|
||||||
|
if(!$tw.boot.wikiTiddlersPath) {
|
||||||
|
$tw.utils.warning("Warning: Wiki folder '" + $tw.boot.wikiPath + "' does not exist");
|
||||||
|
}
|
||||||
var port = this.params[0] || "8080",
|
var port = this.params[0] || "8080",
|
||||||
rootTiddler = this.params[1] || "$:/core/save/all",
|
rootTiddler = this.params[1] || "$:/core/save/all",
|
||||||
renderType = this.params[2] || "text/plain",
|
renderType = this.params[2] || "text/plain",
|
||||||
|
Loading…
Reference in New Issue
Block a user