mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-23 07:26:54 +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];
|
||||
if(parser) {
|
||||
return parser(text,fields);
|
||||
} else {
|
||||
throw new Error("Unknown tiddler type in tiddlerInput.parseTiddler: " + type);
|
||||
}
|
||||
return fields;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user