dont throw exception for unknown types

This commit is contained in:
Sven Klemm
2018-07-10 14:45:36 +02:00
parent e8e24f6139
commit 9d5b4cb91d

View File

@ -6,7 +6,7 @@ var index = [];
function createPart(part): any {
var def = index[part.type];
if (!def) {
throw { message: 'Could not find query part ' + part.type };
return null;
}
return new SqlPart(part, def);