show stack on error

This commit is contained in:
barisusakli
2016-09-20 17:21:43 +03:00
parent e0ec2d8e54
commit 33306f6236

View File

@@ -298,7 +298,7 @@
Translator.create(lang).translate(text).then(function (output) {
return cb(output);
}).catch(function (err) {
console.error('Translation failed: ' + err.message);
console.error('Translation failed: ' + err.stack);
});
},