mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-23 15:36:52 +00:00
Trapped unknown tiddler type error
This commit is contained in:
parent
82f4f34059
commit
d4d377aed4
@ -28,6 +28,8 @@ tiddlerInput.parseTiddler = function(text,type,fields) {
|
|||||||
var parser = tiddlerInput.parseTiddlerByMimeType[type];
|
var parser = tiddlerInput.parseTiddlerByMimeType[type];
|
||||||
if(parser) {
|
if(parser) {
|
||||||
return parser(text,fields);
|
return parser(text,fields);
|
||||||
|
} else {
|
||||||
|
throw new Error("Unknown tiddler type in tiddlerInput.parseTiddler: " + type);
|
||||||
}
|
}
|
||||||
return fields;
|
return fields;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user