Skip to content
Snippets Groups Projects
Commit 10d9a6c8 authored by yakomaxa's avatar yakomaxa
Browse files

removed console.log in try and replaced it by console.error in catch

parent 7789e8cf
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -14,18 +14,12 @@ const transpiler: {[index: string]: Transpiler} = _transpiler; ...@@ -14,18 +14,12 @@ 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);
console.log(str);
console.log(query);
// console.log(util.inspect(query, {depth: 20, color: true}))
console.log('\n');
return query; return query;
} catch (e) { } catch (e) {
console.log(str); console.error(e.message);
console.log(e.message);
console.log('\n');
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