Skip to content
Snippets Groups Projects
Commit 7c82a9fd authored by yakomaxa's avatar yakomaxa
Browse files

update transpile.ts

parent 10d9a6c8
Branches
No related tags found
No related merge requests found
...@@ -14,12 +14,14 @@ const transpiler: {[index: string]: Transpiler} = _transpiler; ...@@ -14,12 +14,14 @@ const transpiler: {[index: string]: Transpiler} = _transpiler;
export function parse(lang: Script.Language, str: string): Expression { export function parse(lang: Script.Language, str: string): Expression {
try { try {
const query = transpiler[lang](str); const query = transpiler[lang](str);
return query; return query;
} catch (e) { } catch (e) {
console.error(e.message); console.error(e.message);
throw e; throw e;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment