Explorar o código

dont throw exception for unknown types

Sven Klemm %!s(int64=7) %!d(string=hai) anos
pai
achega
9d5b4cb91d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/plugins/datasource/postgres/sql_part.ts

+ 1 - 1
public/app/plugins/datasource/postgres/sql_part.ts

@@ -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);